Board index » cppbuilder » Can link the BCB project with an GNU GCC++ or VC compiled lib?

Can link the BCB project with an GNU GCC++ or VC compiled lib?


2004-09-06 09:47:03 AM
cppbuilder101
Thanks.
 
 

Re:Can link the BCB project with an GNU GCC++ or VC compiled lib?

"Shah Lynn" < XXXX@XXXXX.COM >wrote in message
Quote
Thanks.
For future reference, please put your questions in the BODY of your
messages, not in the SUBJECT. Not everyone reads subjects, so your
questions can go overlooked.
As for the actual question, what kind of .lib file are you using to begin
with? There are two different types - DLL import libs and static libraries
containing actual code.
Lib files are vendor-specific, so you cannot use lib files that were
generated using other vendors' compilers. However, if you are using a
simple DLL import lib, it is easy to produce a BCB-compatible one if you
have the original DLL available as well.
As for static libraries, you can't share those between compilers at all. If
you need to do that, then you have to either recompile the library source
code using the compiler you are interested in (assuming you have the source
code to begin with), or else you will have to wrap the library into a DLL
written with the same compiler as the library, and then use the DLL instead
of the original library directly.
Gambit
 

Re:Can link the BCB project with an GNU GCC++ or VC compiled lib?

Sorry, if htis post infringers regulation, I just want to save the
reader's time to click into.
Thanks for your detailed and complete reply. I think I have catch it.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >дʼ
Quote

"Shah Lynn" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...
>Thanks.

For future reference, please put your questions in the BODY of your
messages, not in the SUBJECT. Not everyone reads subjects, so your
questions can go overlooked.

As for the actual question, what kind of .lib file are you using to begin
with? There are two different types - DLL import libs and static
libraries
containing actual code.

Lib files are vendor-specific, so you cannot use lib files that were
generated using other vendors' compilers. However, if you are using a
simple DLL import lib, it is easy to produce a BCB-compatible one if you
have the original DLL available as well.

As for static libraries, you can't share those between compilers at all.
If
you need to do that, then you have to either recompile the library source
code using the compiler you are interested in (assuming you have the
source
code to begin with), or else you will have to wrap the library into a DLL
written with the same compiler as the library, and then use the DLL
instead
of the original library directly.


Gambit


 

{smallsort}