newbie question regarding error

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.

I solved it myself. I compiled it as a console app and it worked.