This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: mixing version of libstdc++
- From: "Jonathan Wakely" <jwakely dot gcc at gmail dot com>
- To: warioh <fam at mikrosimage dot eu>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 9 Sep 2008 20:58:42 +0100
- Subject: Re: mixing version of libstdc++
- References: <19391876.post@talk.nabble.com>
2008/9/9 warioh:
>
> Hi,
> I've got a little issue: I've build a plugin with gcc 4.1.3, linked against
> libstc++.so.6.0.9 but the main program uses libstdc++.so.6.0.8 (the
> libstdc++ so file comes with this program). When the main program tries to
> load the plugin I've got the following error:
>
> libstdc++.so.6: version `GLIBCXX_3.4.9' not found
>
> which is normal because libstdc++.so.6.0.8 (coming with the main program)
> does not have this tag.
> If I do a ldd command on the plugin I've got no error because ldd use the
> correct libstdc++ file.
>
> So I would like to know if and how it is possible to fix this ?
The version of the library used at runtime must be at least as high as
the highest version used to compile any part of the application. So
you need to use libstdc++.so.6.0.9 at runtime, or compile your plugin
with an older version of GCC.
Jonathan