PDA

View Full Version : newbie question regarding error



onlyhuman23
07-11-2002, 12:45 PM
I have just started following a book. I have downloaded the glut3.7.6-bin and added the files to the required dirs. I have made a win32 app project and typed the code and included the required files. it compiles the file correctly but at build time it gives two errors saying:
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/firstgll.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

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

what is the reason for these errors.
http://www.opengl.org/discussion_boards/ubb/confused.gif

onlyhuman23
07-11-2002, 01:01 PM
I solved it myself. I compiled it as a console app and it worked.
http://www.opengl.org/discussion_boards/ubb/smile.gif