This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by undeadindustries
I can't seem to get VS Code to like WxWidgets on Linux or MacOS. It seems like it's trying to default to MSW?
The specific question is making VSCode play nice (autocomplete, don't give false errors) with WxWidgets. In command prompt, compiling any Wx project works perfect.
Steps:
- VS Code is installed
- Create folder for project. Let's call it /src/hello
- Create a hello.cpp file with code from: https://docs.wxwidgets.org/3.0/overview_helloworld.html
- Download WxWidgets into /src/hello/deps
- Going through steps to compile and install Wx https://docs.wxwidgets.org/trunk/plat_osx_install.html
- Check my Intellisense includes to include ${workspaceFolder}/**
Now, in the command prompt, if I run:
g++ hello.cpp 'wx-config --cxxflags --libs' -o hello
./hello runs perfect!
But in VSCode is unusable because it's giving me this error:
cannot open source file "../../../lib/vc_lib/msw/wx/setup.h" (dependency of "wx/wxprec.h")
I'm pretty sure msw is for windows?
I feel like I've tried everything:
- Downloaded and Git version of Wx (Yeah, I know it's the same. But people on the wx forums recommended trying...)
- Use the Homebrew WxWidgets install.
- Using the sample projects included with Wx.
- Using the Hello World
- Same issues in Linux and MacOS.
- Updating Intellisense's includes every way you can think of.
- Using the output of wxconfig and putting the cxxflags and lib include output into Intellisense.
Anyone able to test this all on their MacOS or Linux system and see if they are able to get VS Code to play nice?
THANK YOU!!
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by undeadindustries
undeadindustries | Sciencx (2022-10-03T14:03:40+00:00) VSCode and WxWidgets. Retrieved from https://www.scien.cx/2022/10/03/vscode-and-wxwidgets/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.