This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/32425] -O breaks executable (/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found)



------- 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


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