I installed vscodium and wx/wx.h in my macbook pro using homebrew to install both.
I’m trying to start a gui project using wx/wx.h, but every time I try to include the header file, I get an error issue via the clangd intellisense that says it can’t find the wx/wx.h file. But the path that is specified does have the wx/wx.h file. The path listed also has the setup.h file, so I’m very confused. Attached is a screenshot of the vscodium issue.
If anyone has encountered this issue before and resolved it, please let me know. If anyone has an idea of how to resolve this. Please let me know too. Your help would be hugely appreciated.enter image description here
The thing is the code compiles no problem, but I want to get rid of the annoying error cause it keeps the intellisence system from being of real help.
First to clarify. For the intellisense of my vscodium. I’m using clangd. There was no .vscode directory and I created it. Then I created a c_cpp_properties.json file and put it inside the .vscode directory. The contents of the c_cpp_properties.json file are:
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/usr/local/include/wx",
"/usr/include"
],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++20"
}
],
"version": 4
That didn’t work. I think that vscodium’s clangd is using something aside from the c_cpp_properties.json file to try an resolve this.
I also tried manually moving the wx/ directory to a different location and using that, but it failed as well.
Im Learning is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.