PDA

View Full Version : problems with *.lib linking.



zenon
02-21-2003, 08:39 AM
Hi!
I'm using Borland C++ 5.02, and well..
my problem is more of a pure coding problem
than Open Gl oriented.. but well. let's get to the point =)

I'm trying to use the auxSolidSphere(float) funktion.. but. On compilation.. I receive an error.. Aparently I haven't linked the glaux lib.. And I don't have a * idea of how to link files.. so, how do I do?
I tried to just #include<glaux.lib> but err.. that's just not the way, right`? =)
Can someone out there help little poor me?

Thanks//zen.

blood.angel
02-21-2003, 09:29 AM
Well in Microsoft C++ you add in GLaux.lib into the Project Settings under the link tab.
There must be a Borland equivalent. Try searching the menu options for the project settings.

shinpaughp
02-21-2003, 09:41 AM
Try using:

#pragma comment (lib, "glaux.lib")

zenon
02-21-2003, 10:32 AM
Okay.. so I did.
#pragma comment(lib,"glaux.lib")

but now I get another cool error...

Error: 'C:\BC5\LIB\GLAUX.LIB' contains invalid OMF record, type 0x21

nexusone
02-21-2003, 11:48 AM
Sound's like you have a Microsoft VC++ library, you must have a library compiled for BC5.
I think BC5 has a tool that will convert a MSVC++ library to a BC5 library.
Else you need to find one for it or think about using glut in place of glaux.



Originally posted by zenon:

Okay.. so I did.
#pragma comment(lib,"glaux.lib")

but now I get another cool error...

Error: 'C:\BC5\LIB\GLAUX.LIB' contains invalid OMF record, type 0x21