Jump to content
  • Advertisement
Sign in to follow this  
CProgrammer

borland C++

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

How do you tell the compiler (bcc32.exe - Console compiler) to link to a lib file in Borland C++? Couldnt find it anywhere i the documentation. -CProgrammer

Share this post


Link to post
Share on other sites
Advertisement
Yes I did. And yes I looked at the options available but all I found was -L to set the library directory. Doing this still gives me linker error. So that cant be it.
I used #pragma comment(lib, "blah.lib")
in the code but it didnt help. Maybe that command isnt understood by borland?

-CProgrammer

Share this post


Link to post
Share on other sites
It's been a while since I've done it manually, but can't you just list the filename (with the .lib extension of course) alongside your source files in the command line? Oh, and that pragma directive will most definitely work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!