Archived

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

How do I use libraries in Borland C++?

This topic is 5887 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

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