OpenGL with BCC5.5
4 replies to this topic
Members - Reputation: 122
Posted 20 February 2000 - 03:20 AM
I just downloaded that free compiler, and I''ve been trying to compile a demo I modified that compiled fine under VC++5. I can only find glu32.lib in the PSDK directory, but I need opengl32.lib and glaux(32?).lib. So I tried to point the linker to the MS directory, but it gives me some weird errors. First, VC gave me no errors or warnings, but BC gives me 15 warnings and no errors. So, it will pass the compiler, but not very well. Anyway, when it gets to the linker that I''ve set up with the MS libs, it gives me just this: Error: ''C:\PROGRAM FILES\DEVSTUDIO\VC\LIB\GLAUX.LIB'' contains invalid OMF record, type 0x21 (possibly COFF) What does this mean? How do I fix it? Do I need to download Borland-specific OGL libs or something?
Moderators - Reputation: 8490
Posted 20 February 2000 - 06:53 AM
The message means that the library types are incompatible. Borland uses OMF formated object files, Microsoft uses COFF formated object files. In order to use the MS library files you have to convert the COFF libs to OMF libs or download the OMF libs.
Posted 20 February 2000 - 11:12 PM
Look for IMPLIB.EXE in you BCB5.5 bin directory. It will convert Microsoft compiled libraries to the Borland format. There should also be a text file (IMPLIB.TXT) with instructions on how to use it.