#Weird include / intellisense error

2 messages · Page 1 of 1 (latest)

simple rapids
#

So, its not a huge problem to me but something doesn't seem right
I have those two header files:
src > oled > font.h
src > wifi > wifi.h

In both i have the following included:

#include <string>

Now in wifi.h i get the following error:
cannot open source file "string". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.

As soon as i

#include "wifi/wifi.h"

In my main file the error goes away, also the error doesn't show up when i'm not in this wifi.h file.
Also if i don't include it in my main file i can't autocomplete nullptr and it also doesn't show up as a type.
I created asdf.h in the same directory as wifi.h and everything works fine, i can include string and autocomplete nullptr without it having to be included in the main.cpp

Any ideas what is going on?
I'm using platformio with the esp idf which in this case shouldn't really matter i think

lucid ginkgoBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.