compiling code for other system -> GLIBCXX_3.4.9 not found

Axel Freyn axel-freyn@gmx.de
Fri Mar 13 17:17:00 GMT 2009


Hi Philip,

On Fri, Mar 13, 2009 at 05:34:42PM +0100, p.silva@gmx.net wrote:
> I have to deliver a binary package. But when I try to install it on
> the target computer I get the following error: MM:
> /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required
> by MM)
> 
> >From objdump -T /usr/lib/libstdc++.so.6 (and some "grepping") I
> >assume that the target platform's glibc version is 3.4.8
> >("GLIBCXX_3.4.8").
> 
> How can I solve this issue with minimum effort and by _not_ compiling
> the code on the target platform? I currently only need to support this
> exact target platform.
The easiest ways would be:
 - use an older g++-version, which uses the same version of libstdc++ as
   the target platform. 
 - distribute the adequate version of libstdc++.so together with your
   binary package (however - I have no idea whether that is legal or
   not?)

HTH,

Axel



More information about the Gcc-help mailing list