From: Jack on
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup

Hi,
I forgot how to fix this. Could anyone please help me refresh my mind?
Thanks


From: Ulrich Eckhardt on
Jack wrote:
> LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
> referenced in function ___tmainCRTStartup
>
> Hi,
> I forgot how to fix this. Could anyone please help me refresh my mind?
> Thanks

Provide a main() function like any normal C++ program? Otherwise, i.e. if
you want to use WinMain(), you could try the /ENTRY parameter of the linker
or just not use /SUBSYSTEM:CONSOLE.

Uli