borland C++
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
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
I used #pragma comment(lib, "blah.lib")
in the code but it didnt help. Maybe that command isnt understood by borland?
-CProgrammer
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement