I created a project with platformio init --ide clion --board nodemcuv2
I’m using the library ESP8266WebServer.h, and the IDE cannot recognize the code as valid:
I created a project with platformio init --ide clion --board nodemcuv2
I’m using the library ESP8266WebServer.h, and the IDE cannot recognize the code as valid:
@ivankravets, would you like to reproduce it in your environment? You may try to download and import this project into your CLion: https://www.hackster.io/rayburne/esp8266-captive-portal
It is a very similar problem:
Please check Cmake’s files located in the root of a project. Do they contain all include paths?
Actually i’ve found a fix
Adding the following to Cmake fixes the issue.
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")