Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to compile the "hello.c" sample in "OpenGL Programming Guide"?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 Gandalf   Members   

122
Like
Likes
Like

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


#2 Gandalf   Members   

122
Like
Likes
Like

Posted 17 January 2000 - 12:44 AM

(Im using Microsoft Visual Studio 6.0)
(Its the 3:rd edition of the book)
(Im using glut 3.7 beta)

Gandalf the White


#3 errand   Members   

122
Like
Likes
Like

Posted 17 January 2000 - 12:54 AM

If I recall correctly you will make it a console-app NOT a win32-app and it will work fine.

Cause the examples in that book are platform independant and there for no win32-codes

-E

#4 Gandalf   Members   

122
Like
Likes
Like

Posted 17 January 2000 - 01:17 AM

Thanks mr.Quick-Witted!

But in which folder shall I place the glut32.dll
(I get a messagebox whitch says "cant find DLL file glut32.dll")?

Thank you very much!

Gandalf the White


#5 SiCrane   Moderators   

11765
Like
Likes
Like

Posted 17 January 2000 - 05:15 AM

You can just dump the glut32.dll into your windows/system directory, or in the same directory as the executable. If you do the latter, just remember that VC++ uses debug and release directories, so dump it in that.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.