undefined symbol
sami ozen
sami@provus.ro
Wed Aug 6 19:11:00 GMT 2003
Hi Janis,
Yes i realised the difference name manglings for different compilers.
i installed same compiler (SUN FORTE) that libraries are compiled , and
after i succeeded in compiling my applications.
Than you very much,
Sami
----- Original Message -----
From: "Janis Johnson" <janis187@us.ibm.com>
To: "sami ozen" <sami@provus.ro>
Cc: <gcc@gcc.gnu.org>
Sent: Wednesday, August 06, 2003 7:58 PM
Subject: Re: undefined symbol
> 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