Board index » cppbuilder » Libraries!

Libraries!


2003-09-15 04:55:11 PM
cppbuilder46
First off, thanks for all the help on the Ansi C++ issue. Secondly, I would
like to ask if anyone can help me on this question. I have two libraries,
one in C++ and the other in C. I can compile and build both seperately and
they both work fine when I link them from an application. I can also build
them together as one except that when I try to link any of the functions
from the C source code I get unresolved external errors. I have compiled the
two libraries into one with Cygwin and they're are no problems, I can link
the library to a new application and it works ok. Is there something that I
must do from within the Borland IDE to insure that the two libaries build
ok, or is there a problem with using C and C++ code together to produce one
unified lib?
Rory.
 
 

Re:Libraries!

On Mon, 15 Sep 2003 10:55:11 +0200, Rory Walsh wrote:
Quote
except that when I try to link any of the functions
from the C source code I get unresolved external errors
Check out extern "C" in the online help. It sounds like one part of the
code is doing name mangling when the other part isn't
--
liz