Advertisement

unresolved external symbol _main

Started by February 20, 2003 06:31 PM
1 comment, last by bbays50 21 years, 8 months ago
I am using Visual C++ 6 and I am writing the windows code for my first game - and I keep on getting the same error. I have looked the code over and over again with no luck of finding an error...in fact, I am pretty sure that there is not one. Not only am I getting this error every time I compile, but anything else I try to compile afterwards will also all of a sudden give the same error.... Anyway, the error reads like this... Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OpenGL Towers Of Hanoi.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. OpenGL Towers Of Hanoi.exe - 2 error(s), 0 warning(s) Does anybody have any ideas as to what is going on? Please?
Did you try making a console app project and then start adding win32 code?
Advertisement
project -> settings -> link tab
where it says Project Options change subsystem:console to subsystem:windows

This topic is closed to new replies.

Advertisement