This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: undefined symbol
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: sami ozen <sami at provus dot ro>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 6 Aug 2003 09:58:35 -0700
- Subject: Re: undefined symbol
- References: <075601c35beb$8028b720$8700a8c0@sami>
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