I keep getting this error message when building PLATFORMIO_BUILD
from CLion
… .platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:279:48: error: ‘nullptr’ was not declared in this scope
const char* server1, const char* server2 = nullptr, const char* server3 = nullptr);
when I build from CLion…
pio run
andpio run --target upload
runs without an issue when run from command line.
…
.platformio/packages/framework-arduinoespressif8266/cores/esp8266/HardwareSerial.h:108:23: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
int available(void) override;
^
In CLion settings I tried both the bundled cmake and gdb as well as my system one (/usr/bin/cmake, /usr/bin.gdb).
Versions:
- CLion bundled ones:
- CMake: 3.6.3
- GDB: 7.11.1
- System wide versions are:
- CMake 3.5.1
- GDB: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
This is my first PlatformIO project after a while, last time I also used CLion but had no issues, this was on a different linux distro though.
This is platformio.ini
:
[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
From searching online it seems that the issue might be that CLion compiles it with different -std
parameter? I tried to sprinkle -std=gnu++11
wherever I could but it didn’t help.
Could anyone please point me in the right direction? I know nothing about these build systems…