OpenGL logo
Configuring Borland C++ 5.5 for GLUT/OpenGL

( This page was formerly in Swedish, but since there also seems to be demand for this kind of information abroad I've decided to both update the information for Borland C++ version 5.5 and the new GLUT version 3.7.6 and translate it to English. )

Requirements:

Steps to install:

  • Run the OpenGL95.exe file which unzips a number of files in a directory
  • Copy the opengl32.dll file to \windows\system\ (on Win95/98/ME) or winnt\system32 (on WinNT/2000)
  • Copy GL.H, GLU.H and GLAUX.H to <borland55 install dir>\include\gl\> (create GL directory if not available)
  • You need to create libs from these Windows DLLs (libs also downloadable here):
    • opengl32.dll
    • glu32.dll
    • glut32.dll
    • glut.dll
    • winmm.dll
  • Libs are created with the Borland program implib (from the command prompt).
    Usage: implib <lib_name>.lib <lib_name>.dll
  • Copy the libs to <borland55 install dir>\libs\

Now OpenGL/GLUT should work with the Borland C++ compiler!!

To Compile:

To compile a file you may need to include the glut32.lib library:

bcc32 -L <borland55 install dir>\lib\glut32.lib filename.c

Rember that you must add the line
#include <windows.h>
before
#include <GL\glut.h>

I hope these instructions make sense. If you have any questions or comments regarding the configuration (not about OpenGL programming!) please mail me: e95_tni@e.kth.se

Valid XHTML 1.1!

Valid CSS!

OpenGL animation
Updated: 2003-02-01