http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53304
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-10 14:39:15 UTC --- http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths You need to tell the dynamic linker how to find the 4.7 libs