http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51673
--- Comment #12 from Pawel Sikora <pluto at agmk dot net> 2012-03-04 19:36:30 UTC --- with current 4.6.4 i've noticed a new undefined reference during boost_rexeg.dll linking: (...) Creating library file: bin.v2/libs/regex/build/gcc-mingw-4.6.4/release/inlining-on/target-os-windows/threadapi-win32/threading-multi/libboost_regex.dll.abin.v2/libs/regex/build/gcc-mingw-4.6.4/release/inlining-on/target-os-windows/threadapi-win32/threading-multi/cpp_regex_traits.o: In function `boost::re_detail::cpp_regex_traits_base<char>::imbue(std::__7::locale const&)': /home/users/pluto/buildenv/linux/x86_64-w64-mingw32/boost_1_49_0/./boost/regex/v4/cpp_regex_traits.hpp:216: undefined reference to `bool std::__7::has_facet<std::__7::messages<char> >(std::__7::locale const&)' $ x86_64-w64-mingw32-objdump -t cpp_regex_traits.o|egrep '_ZN.+has_facet.+messages' [325](sec 0)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0000000000000000 _ZNSt3__79has_facetINS_8messagesIcEEEEbRKNS_6localeE i see a has_facet in symbols table: $ x86_64-w64-mingw32-objdump -t libstdc++-7.dll|egrep '_ZN.+has_facet.+messages' [13096](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0000000000093880 _ZNSt3__79has_facetINS_8messagesIcEEEEbRKNS_6localeE [21476](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000000938e0 _ZNSt3__79has_facetINS_8messagesIwEEEEbRKNS_6localeE but they aren't present in export-address-table. any ideas?