PDA

View Full Version : C++ Builder and Opengl32.lib



12-10-2001, 11:04 AM
I have this problem:
when I write a short program in Borland C++ Builder and try to compile it I get this error:
[LinkerError] 'C:\OPENGL32.LIB' contains invalid OMF record, type 0x21.

I've downloaded OpenGL libraries from microsoft games. What can cause this problem or what is more important how can I correct it?
THx for help in advance.
J.S.

Lev
12-10-2001, 12:52 PM
Borland uses another format for .lib files. So you either have to get opengl32.lib especially made for borland c++ builder or to create one. There is an utility implib.exe, which will output a lib file from a dll file, so just run it over opengl32.dll and you'll get a useable lib

-Lev

[This message has been edited by Lev (edited 12-10-2001).]

12-11-2001, 08:23 AM
OK. Now the same thing happens with glaux.lib, but I can't find glaux.dll anywhere. Where could I download it from?
Thx in advance.
J.S.

heiman
12-11-2001, 12:10 PM
See my OpenGL page for info about using GLUT & GLAUX with Builder.
http://members.home.net/scottheiman/

[This message has been edited by heiman (edited 12-11-2001).]

dheitbri
12-13-2001, 09:57 AM
There is another program called coff2omf, it will convert your coff (MS Visual C) library file to OMF what Borland uses. I don't know what you want to you GLUAX for? Its generaly a bad idea.