borland C++

Started by
3 comments, last by Thunder_Hawk 19 years, 8 months ago
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
Advertisement
[google] got me this on the first attempt. Had you tried searching at all?
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
Never mind. I fixed the problem:)
Thanks anyway.

-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.
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________

This topic is closed to new replies.

Advertisement