Re: Linking object files created by different GCC compiler versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/28/2011 09:24 AM, Schmidt, Steffen wrote:
Hello,

I'm trying to link object files originally created by different GCC versions together into one elf file.
Some object files were created by GCC 4.3.2, others by GCC 4.6.0. Unfortunately I get errors during final linking, having unresolved symbols. This seems to be due to the fact, that the used compiler versions seem to create different symbols for the same function/method.

One example:
We implement the new operators by our own:
void * operator new(size_t size);
The symbol created by GCC 4.3.2 is _Znwm
The symbol created by GCC 4.6.0 is _Znwj

/home/cro> c++filt _Znwm
operator new(unsigned long)
/home/cro> c++filt _Znwj
operator new(unsigned int)

might be helpful...


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux