How to compile the "hello.c" sample in "OpenGL Programming Guide"?
4 replies to this topic
Members - Reputation: 122
Posted 17 January 2000 - 12:37 AM
I have download the lib and header files and placed them in the Micorsoft Visual Studio folder ("C:\Program\Microsoft Visual Studio\VC98\Include" and "..\lib"). I have not changed anything in the source file "hello.c". When I compile I get this error: ///////////////////////////////////////////////////// Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Hello.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Hello.exe - 2 error(s), 0 warning(s) ///////////////////////////////////////////////////// Please can somebody help me here! (I have bougth the book "OpenGL Programming Guide" and I have just read a couple of pages. I have never used OpenGL before, but I have experience with Direct3DRM.) Gandalf the White