This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32425] -O breaks executable (/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found)
- From: "lionelb dot nospam at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 15:01:42 -0000
- Subject: [Bug c++/32425] -O breaks executable (/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found)
- References: <bug-32425-14725@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from lionelb dot nospam at gmail dot com 2007-06-20 15:01 -------
(In reply to comment #1)
> And this is not a bug, you need to setup LD_LIBRARY_PATH correctly to point
> to where the latest version of libstdc++ reside which means where
> --enable-version-specific-runtime-libs puts the library.
I see; that does solve the problem (as does using -Wl,-rpath ... maybe not
recommended).
Odd that I only hit that with the -O (and not with 4.1.2 at all). I guess that
was just "lucky".
> Note -static-libgcc is wrong here too because of exceptions.
As mentioned in the report, please see:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415
I may have a workaround for this now.
BTW what are the implications for exceptions of linking with -static-libgcc?
Cheers,
Lionel
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32425