PDA

View Full Version : How to use OpenGL with Borland C++ 5.0



AlfaOne
02-07-2002, 09:46 AM
Can anyone help me in writing OpenGL codes with Borland C++ (5.0)? I tried to compile a prewritten code (from some book on OpenGL) and I got Linker errors.
Am I missing out something? http://www.opengl.org/discussion_boards/ubb/confused.gif
-AlfaOne

nexusone
02-07-2002, 09:54 AM
I am guessing you do not have the OpenGL library's listed in the linker.

add's these library's to the linker library list.

opengl32.lib glu32.lib glut32.lib

and if you are using any glaux stuff then the glaux.lib.

I do not know if the Opengl lib's come with Borland, so you may want to check the lib directory for these. If you don't have them then you will need to download them.



Originally posted by AlfaOne:
Can anyone help me in writing OpenGL codes with Borland C++ (5.0)? I tried to compile a prewritten code (from some book on OpenGL) and I got Linker errors.
Am I missing out something? http://www.opengl.org/discussion_boards/ubb/confused.gif
-AlfaOne



[This message has been edited by nexusone (edited 02-07-2002).]

Miguel_dup1
02-07-2002, 10:10 AM
Yes, the opengl lib comes with borland...

The question would then be ::::
Are you using GLUT?

In the programs you are trying to compile, do you have a header file called glut.h
e.g.
#include "gl/glut.h"

If you do then you have to download the glut archive for borland, or you can simply download the VC version and create a .lib to use with borland....

rpxmaster
02-07-2002, 10:58 AM
Can you tell us what the linker errors say? This will help us greatly.

Oh sweet...I'm now a Frequent Contributor :)


[This message has been edited by rpxmaster (edited 02-07-2002).]

AlfaOne
02-09-2002, 01:28 AM
Error: Error: Unable to open file 'GLUT32.LIB'
Error: Error: Unable to open file 'GLU32.LIB'
Error: Error: Unable to open file 'OPENGL32.LIB'
Error: Error: Unable to open file 'WINMM.LIB'

Originally posted by rpxmaster:
Can you tell us what the linker errors say? This will help us greatly.

Oh sweet...I'm now a Frequent Contributor http://www.opengl.org/discussion_boards/ubb/smile.gif


[This message has been edited by rpxmaster (edited 02-07-2002).]

Bob
02-09-2002, 02:43 AM
Either you don't have those library files, or you have them in a place where the linker can't find them.