How to use OpenGL with Borland C++ 5.0

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?
-AlfaOne

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?
-AlfaOne

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

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…

Can you tell us what the linker errors say? This will help us greatly.

Oh sweet…I’m now a Frequent Contributor :slight_smile:

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

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:
[b]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).][/b]

Either you don’t have those library files, or you have them in a place where the linker can’t find them.