Error LNK2019 unresolved external symbol _main referenced in function “int __cdecl invoke_main(void)” (?invoke_main@@YAHXZ)

Check project configuration. Linker->System->SubSystem should be Windows.

Leave a Comment