undefined symbol
Janis Johnson
janis187@us.ibm.com
Wed Aug 6 18:53:00 GMT 2003
On Wed, Aug 06, 2003 at 10:22:31AM +0300, sami ozen wrote:
>
> I am using some 3rd party libraries, and while using these libs i got a
> linker error.
It's likely that the name mangling used by the C++ compiler that built
that library is different from the name mangling used by the version of
G++ you're using, so the function names that the linker sees are
different. Name mangling is just one of many differences between
the object code generated by different C++ compilers. You can't link
together C++ object files (including libraries) unless they were built
by the same compiler or by compilers that follow the same application
binary interface (ABI) for C++.
See http://gcc.gnu.org/onlinedocs/gcc/Compatibility.html#Compatibility
for some general information about issues that affect interoperability
of C++ compilers.
Janis
More information about the Gcc
mailing list