...

View Full Version : c++ compiling errors... very odd!



renderstream
03-06-2004, 05:23 PM
Hi, my VC++ 6 is acting wierd. After i try running a few small programs, it gives me this error:

--------------------Configuration: a - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/a.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

a.exe - 2 error(s), 0 warning(s)

EVEN IF MY PROGRAM IS THIS!

#include <iostream.h>

int main()
{
cout << "Hey";

return 0;
}

shmoove
03-07-2004, 08:52 AM
Looks like you're trying to compile and run your program as a Windows app instead of as a console app (So it searches for a WinMain as it's entry point instead of main). When you create a new project, choose the "Win32 Console Application" and not "Win32 Application".

shmoove



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum