reproduced steps:
- cloned vcpkg repo
- followed instructions from https://www.wxwidgets.org/blog/2019/01/wxwidgets-and-vcpkg/
- except: added vcpkg to path and then 'vcpkg integrate install' inside visual studio terminal
At example file, it gives me three errors:
- __w64 can only be specified on int, long, and pointer types Example01 C:\Users\Petre\source\repos\vcpkg\installed\x64-windows\include\wx\types.h
- LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
- LNK1120: 1 unresolved externals
YOU
installed wxWidgets. Please follow instructions as they are written. – Igorminimal
sample provided with the library. It already has the solution for MSVC, so you don't need to do anything extra. – Igor__w64
error is a IntelliSense error and can be safely ignored. That being said, cloningvcpkg
and runningvcpkg integrate install
is sufficient to start using wxWidgets via Visual Studio – segmentation_fault