Re: Can GCC / ld selects the version of GLIBCXX from libstdc++.so.6

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

 



hce wrote:

> I thought, if I can force compiler in FC9 to use old version of
> GLIBCXX_3.4.8, the problem should be resolved. Please advice.

No, that's not possible.  Symbol versioning works in one direction only:
code linked against an older version of a library will work with a newer
version of the library found at runtime.  But not the reverse.

So the solution is straightforward: link your code with the oldest
version of libstdc++ that you wish to support.  The same concept will
apply to glibc as well.  In practice this means that your build machine
needs to have the lowest common denominator of gcc and glibc versions
that you intend to support.

Brian

[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