This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: mixing version of libstdc++


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


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