I decided to jump back into working on some personal projects using wxWidgets, but for some reason this time I cannot get Visual Studio 2019 to cooperate on one of my systems. I cross-checked my other computer where VS2019 seems to work, but even when confirming that it's all the same I can't seem to get it running.
At this point I'm trying to just get the Hello World program in the docs up and running, but it refuses to work. The steps I followed to set it up are from the docs:
It doesn't seem to have any linking errors and the syntax highlighting seems good, so I guess it's linking correctly there. However, I'm getting a specific error when I try to build:If you use MSVS 2010 or later IDE for building your project, simply add
`wxwidgets.props` property sheet to (all) your project(s) using wxWidgets
by using "View|Property Manager" menu item to open the property manager
window and then selecting "Add Existing Property Sheet..." from the context
menu in this window.
If you've created a new empty project (i.e. chose "Empty Project" in the
"Create a new project" window shown by MSVS rather than "Windows Desktop"),
you need to change "Linker|System|SubSystem" in the project properties to
"Windows", from the default "Console". You don't need to do anything else.
Code: Select all
unresolved external symbol _main referenced in function "int __cdecl invoke_main(void)"
NOTE: I do not have any additional include directories set because of the "You don't need to do anything else." at the end of that doc section.
Any ideas? I've spent about 2 days trying to get this running and just can't seem to get it running. Any help is appreciated!