View Full Version : Yet Another Compile Error
when ever i try to build an opengl project, i get the following error:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Beta5.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Usin MSVC. any help would be apreciated.
08-07-2001, 11:06 PM
Well, it seems that your WinMain function is missing so you've probably created a console app instead of a win32 app.
Create a new project in MSVC and choose for 'Win32 Application'.
btw. Linking errors are the easiest errors to solve, just have a look at that symbol description from the error: (_WinMain@16) it means that the function WinMain (the compiler usually puts an underscore at the start of every function name) with arguments of 16 bytes in size (4 arguments * 4 bytes) cannot be found.
Another thing which you should know is that console programs have 'main' as their starting funtion and win32 programs have 'WinMain' as their starting function.
[This message has been edited by richardve (edited 08-08-2001).]
kool it works, thanks for that. Guess that teaches me to be more careful http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.