#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit #100243
Unanswered
kokonowyfifi
asked this question in
General
Replies: 1 comment 3 replies
-
|
it should be |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm starting my journey with the Zephyr RTOS and I'm having trouble with the compiler/IntelliSense finding include paths from the build output. (I`m using nucleo_f303re)
I created a c_cpp_properties.json file in VS Code and added the configuration pointing to the compile_commands.json file: "configurations": [
}]
and {
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:\MinGW\bin\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}However, VS Code's IntelliSense still cannot find the necessary headers, which makes development very difficult. The specific errors I'm seeing are:
Zephyr header not found: zephyr/kernel.h: No such file or directory
Standard C headers not found: cannot open source file "inttypes.h", cannot open source file "errno.h", cannot open source file "stddef.h" This is for a standard example like the button sample. Oddly, both the button and blinky examples flash successfully, but the PWM blinky example is already giving me build problems (though my main concern right now is the IntelliSense paths).
My primary issue is correctly setting up these include paths.
I would also like to ask for recommendations on VS Code extensions for debugging Zephyr code, as I am keen to properly learn the OS.
Thank you in advance for your help! Best regards.
Beta Was this translation helpful? Give feedback.
All reactions