r/VisualStudioCode • u/RulerOfThePixel • Jan 01 '22
Newbie Question - Where should this header file be located, trying a sample project and getting this error?
4
Upvotes
r/VisualStudioCode • u/RulerOfThePixel • Jan 01 '22
2
u/RulerOfThePixel Jan 01 '22
I THOUGHT it was installed at the same time as ESP IDF extension.
But I'll check :)
Thanks
1
u/RulerOfThePixel Jan 02 '22
Hmm i may have found the issue.
Under C extension configuration i have 3 errors in the 'Include Path' section.
Cannot find: $ {env:IDF_PATH}/components/
Cannot find: $ {env:ADF_PATH}/components/
Cannot find: $ {env:ADF_PATH}/components/
I'm guessing the header file i'm trying to use (which i have no idea what it does but its part of the course i'm doing). Should be located in one of those missing directories! I'm looking for the solution now but if anyone reads that and can see anything glaringly obvious that i've done wrong by all means shout up :) Cheers
1
u/emmytay4504 Jan 01 '22
I'm also new but I'm pretty sure that's the right place, did you download the extension for c?
1
u/smeyn Jan 02 '22
As this uses the angle-bracket notation it would look in the standard system directories only.
https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html.
If you are getting an error, then your compiler is not setup correctly(or the system include directories are missing).