system
September 26, 2002, 6:00pm
1
what does the following mean:
Linking…
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/aritOperators.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
aritOperators.exe - 2 error(s), 0 warning(s)
it has problm linking … but my file is save under .cpp in VS6
chicho
September 26, 2002, 9:08pm
2
You have created a Win32 Application, not a Win32 CONSOLE aplication. In a win32 application the entry point is “Winmain”, not “main” like a Win32 console application.
The more simple :
Alt+F7
Choose “Link” tab, replace the line :
/subsystem:console
by
/subsystem:windows
tinak
September 28, 2002, 4:54pm
4
Or you could add this line to the top of your code…
#pragma comment( linker, “/entry:“mainCRTStartup”” )
I’ve been using this for glut apps where I didn’t want the extra console window to pop up.
Tina