OpenGL32.lib Linker Error

Started by
7 comments, last by Kevinator 24 years ago
Whenever I link this .lib to a sample OpenGL prog I have, I get a linker error that looks like this: [Linker Error] ''D:\CBUILDER4\LIB\OPENGL32.LIB'' contains invalid OMF record, type 0x21 (possibly COFF). What''s going on? Thanks, Kevinator
Advertisement
It looks like the lib file you have was designed for Visual C++, which uses COFF formated libraries. Borland C++ Builder uses OMF formatted libraries.
Thanks for the help! Does anyone have any idea where to get the OMF formatted OpenGL libraries, (I looked at opengl.org, and couldn''t find anything)? Thanks -- if you could help me out, I''d be eternally grateful.
There''s a tool included with BCB to import the libraries IIRC, but I''m not sure what''s it called.

CU

Graphix Coding @
Skullpture Entertainment
http://www.skullpture.de
Graphix Coding @Skullpture Entertainmenthttp://www.skullpture.de
If it''s consistent with previous versions of BC++, it''d be implib
Actually, with C++ Builder 4, you shouldn''t need any additional libraries. Check the examples directory for OpenGL\Drawing for their GLskeleton app. If you copy it''s project settings you should be fine.
This is pretty frustrating.

I included import32.lib in the project and still got the same error. Also, there are no GL/Drawing subdirectories included in the examples, and could not find the GLskeleton application. Any ideas?
Do you have standard edition? I always forget that Professional edition actually adds features.

Just use implib.exe on the OpenGL32.dll file in your Windows\System directory. And link against the lib that it creates. implib will create a OMF formatted import lib file against the export table in any DLL.
Thanks! That did it!

This topic is closed to new replies.

Advertisement