PDA

View Full Version : Sorry for this stupid question



10-10-2000, 01:45 AM
What do I need for compile opengl??

(I repeat, sorry mates, but I'm only 15 years old :P)

julien
10-10-2000, 03:32 AM
You need some libraries to link:
opengl32.lib
glu32.lib
glut32.lib
glaux.lib

you need also opengl32.dll to be in your system directory
and some header files to include:
gl.h
glu.h
glaux.h

If you're working with VCC, you should put lib files into VCC lib directory and header files into a \GL directory in VCC include directory.

That's all I think.

[This message has been edited by julien (edited 10-10-2000).]

Teofuzz
10-10-2000, 04:58 AM
Glut makes glaux useless (glaux is no longer supported), and if you like to write programs using win32 api you don't have to use glut.
Now if you have win95 release b or older, you already have the dlls in your system.

Conclusions:
opengl32.lib, gl.h
glu32.lib, glu.h
Optional: glut32.dll,glut32.lib,glut.h

If you use borland's compiler you have to convert lib files with implib.
Bye!

Khrob
10-10-2000, 05:38 AM
Once you've got your .dlls linked, head over to nehe.gamedev.net.

One of the best resources on the net.

Good luck!

Bruno
10-10-2000, 07:24 AM
Jorge, és português ou brasileiro ?? Tens nome latino http://www.opengl.org/discussion_boards/ubb/smile.gif

fica bem

Bruno

10-11-2000, 09:45 AM
Soy español (spanish) http://www.opengl.org/discussion_boards/ubb/tongue.gif

10-12-2000, 05:41 AM
Sorry but... where can I get those libraries?

thx http://www.opengl.org/discussion_boards/ubb/smile.gif

JustinVoshell
10-12-2000, 07:46 AM
If you are working on Microsoft, you should have them. Just include them in your list of libraries to your linker and you should be home free.

In VC++ 6:
Build > Settings > Link > Put opengl32.lib, glu32.lib, glaux.lib (or whatever) in the Object/library modules list.