ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
1.99k stars 637 forks source link

Could not compile in PlatformIO on ESP32 #295

Closed robig closed 3 years ago

robig commented 4 years ago

The example is running fine in Arduino IDE. But when trying to work with PlatformIO I'm getting a lot of compiler errors:

In file included from src/Display.cpp:20:0: .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:51:24: error: expected ')' before '_address' SH1106Wire(uint8_t _address, uint8_t _sda, uint8_t _scl, OLEDDISPLAY_GEOMETRY g = GEOMETRY_128_64) { ^ .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:43:18: error: an anonymous struct cannot have function members class SH1106Wire : public OLEDDisplay { ^ .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:43:18: error: member 'OLEDDisplay <anonymous class>::<anonymous>' with constructor not allowed in anonymous aggregate .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:43:18: error: member 'OLEDDisplay <anonymous class>::<anonymous>' with destructor not allowed in anonymous aggregate .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:43:18: error: member 'OLEDDisplay <anonymous class>::<anonymous>' with copy assignment operator not allowed in anonymous aggregate .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:173:2: error: abstract declarator '<anonymous class>' used as declaration };

ProggyCoder commented 3 years ago

In file included from src/Display.cpp:20:0: .pio/libdeps/lolin32/ESP8266_SSD1306/src/SH1106Wire.h:51:24: error: expected ')' before '_address' SH1106Wire(uint8_t _address, uint8_t _sda, uint8_t _scl, OLEDDISPLAY_GEOMETRY g = GEOMETRY_128_64) Are you sure you are not missing the ) somewhere?

marcelstoer commented 3 years ago

https://github.com/ThingPulse/esp8266-oled-ssd1306/blob/master/src/SH1106Wire.h#L68

Those are parameter default values. The CI build is green: https://travis-ci.org/github/ThingPulse/esp8266-oled-ssd1306

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.