This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]