Discussion:
___tmainCRTStartup question
(too old to reply)
Jack
2006-12-11 09:58:39 UTC
Permalink
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
Ulrich Eckhardt
2006-12-11 10:19:06 UTC
Permalink
Post by Jack
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

Loading...