Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Kevinator

OpenGL OpenGL32.lib Linker Error

This topic is 6796 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!