problems with *.lib linking.

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.

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.

Try using:

#pragma comment (lib, “glaux.lib”)

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

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:
[b]
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[/b]