I am using VS Code. Windows 7. wxWidgets 3.1.2 built with mingw.
As mentioned, i use vs code. I am trying to make intellisense work with wxwidgets. The code compiles (using Makefile and g++) and runs fine, only a problem with code completion/hints. Simple program with "wx/wx.h" at top.
Error:
Code: Select all
cannot open source file "../../../lib/vc_lib/mswu/wx/setup.h" (dependency of "wx/wx.h")C/C++(1696)
Code: Select all
wxCONCAT6(../../../lib/,wxLIB_SUBDIR,/,wxTOOLKIT_PREFIX,wxSUFFIX,/wx/setup.h)
I dont know how microsoft software "does this", but i would love to know what is actually happening, because all other non-microsoft editors i have tried like codelite, codeblocks and slickedit includes from the correct lib, "gcc_lib".
I have tried setting different variables, in the "defines" part in the c_cpp_properties.json file, i also tried changing the wxLIB_SUBDIR in "defines", but it has no effect.
It currently looks like this:
Code: Select all
{
"configurations": [
{
"name": "Win64",
"includePath": [
"${workspaceFolder}/**",
"D:/Programing_Libs/mingw/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include",
"D:/Programing_Libs/mingw/mingw64",
"D:/Programing_Libs/wxWidgets-3.1.2/include",
"D:/Programing_Libs/wxWidgets-3.1.2/include/msvc"
],
"defines": [
"",
"_UNICODE"
],
"compilerPath": "D:/Programing_Libs/mingw/mingw64/bin/g++.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"compilerArgs": [],
"browse": {
"path": [
"${workspaceFolder}/**"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}