I have a working Visual Studio project that uses wmain()
as the entry-point. I would like to use main()
instead.
If I simply change the function signature to int main()
, I get:
error LNK2019: unresolved external symbol _wmain referenced in function "void __cdecl mainCRTStartupHelper(struct HINSTANCE__ *,unsigned short const *)"
What option do I need to change to make the link succeed?
I found a solution by guessing.
Configuration Properties > Linker > Advanced > Entry Point
was: mainWCRTStartup
now: mainCRTStartup
## removed W
Build succeeded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With