[SOLVED] 0.5.0.rc.1 compile issue with Adafruit SSD1306 library

Whilst testing 0.5.0.rc.1 and softAP implementation, found that with the Web IDE there was compiler compatibility issue with the Adafruit Adafruit_SSD1306 library.

Was getting multiple compile time issues like this:

/usr/local/gcc-arm-embedded-gcc-arm-none-eabi-4_8-2014q2-20140609-linux-tar-bz2/arm-none-eabi/include/c++/4.8.4/bits/stl_vector.h:1108:23: error: macro "swap" requires 2 arguments, but only 1 given
        swap(vector& __x)

For the softAP implementation, one needs to #include “Particle.h”.

I had placed the #include “Particle.h” after the library #include “Adafruit_SSD1306/Adafruit_SSD1306.h”

The fix was to place #include “Particle.h” first (which makes sense).

Case closed.

1 Like