How should I use glut library in C++ Builder?

I have copied glut.h to include and glut32.lib glut.lib to lib, but when compile a program, the IDE says this is a link error.
So what should I do, when using glut?

you need to make the borland .lib files from the GLUT dll’s, in actual fact, the lib’s supplied with glut are for MS VC++, you need to define libs for GLUT32.dll, and any other opengl dll’s your using. looking this up in google helped me, to make these libraries you use.

implib

on the command line, then copy the lib files created to the borland lib directory. This tool does not convert from VC libs as suggested on some sites, it makes a .lib from the original dll.

hope this helps

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.