I'm trying to build a simple vs2019 project which sets the Kind as a "WindowedApp" in vs2019.
The visual studio config window shows the following:
Which makes me believe the following code should compile:
#include <windows.h>
#include <stdio.h>
int WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
printf("Hello World!");
return 0;
}
Instead I get the following error while linking:
3>------ Build started: Project: Tests, Configuration: Debug x64 ------
2>main.cpp
2>MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
2>..\..\samples\01HelloWorld\01HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
2>Done building project "01HelloWorld.vcxproj" -- FAILED.
This does not occurr when I generate a new project manually in vs and run the same code, which is why I suspect it might be something on GENie's side of things. I've tried regenerating the project from scratch and still get the same link time issue. I've also triple checked that the genie.lua script is compiling correctly and my changes are applying. I've also tried manually setting and resetting that field in VS and still get the same issue.
Hello there!
I'm trying to build a simple vs2019 project which sets the Kind as a "WindowedApp" in vs2019.
The visual studio config window shows the following:
Which makes me believe the following code should compile:
Instead I get the following error while linking:
This does not occurr when I generate a new project manually in vs and run the same code, which is why I suspect it might be something on GENie's side of things. I've tried regenerating the project from scratch and still get the same link time issue. I've also triple checked that the genie.lua script is compiling correctly and my changes are applying. I've also tried manually setting and resetting that field in VS and still get the same issue.
Got any ideas?
Thanks!