When building a wxWidgets-3.1.2 project in Visual Studio (both the template from Nuget and the sample from the wxWidgets directory), the compiler generates the following error:
Error C1083 Cannot open include file: '../../../lib/vc_dll/mswud/wx/setup.h': No such file or directory Project1 c:\wxwidgets-3.1.2\include\msvc\wx\setup.h 125
I already built the wxWidgets DLLs in VS so that's not the problem.
I cannot fix this since the file location is in the wxWidgets source code and I don't want to modify that source code. But I really need to compile my project. Please help.
It turns out that I had built the release DLLs but not the debug DLLs. So that was my mistake. After I built the debug DLLs I was able to compile the application.