Archived

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

CHollman82

How do I use libraries in Borland C++?

Recommended Posts

Im trying to include the glaux.lib file, but the example code I got uses: USELIB ("glaux.lib"); but that doesn''t work with Borland. The error says ") expected". Apparently Borland wants a '')'' right after "USE" ???

Share this post


Link to post
Share on other sites
USELIB is probably a user defined macro. I don''t think there is a version of glaux.lib for Borland, but assuming there is I think this would include it:

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

I had to go check and make sure that wasn''t an MSVC-only feature. The Borland help file says that works.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites