http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51673
Bug #: 51673 Summary: undefined references / libstdc++-7.dll Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: pl...@agmk.net Created attachment 26182 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26182 testcase with libstdc++-6/7.dll with gcc crosscompiler configured for target x86_64-pc-mingw32 with --enable-symvers=gnu-versioned-namespace --enable-libstdcxx-allocator=mt i'm getting linker errors on trivial testcase. /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE8allocateEyPKv[__gnu_cxx::__7::__mt_alloc<int, __gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true> >::allocate(unsigned long long, void const*)]+0x63): undefined reference to `operator new(unsigned long long)' /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE8allocateEyPKv[__gnu_cxx::__7::__mt_alloc<int, __gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true> >::allocate(unsigned long long, void const*)]+0x142): undefined reference to `__gnu_cxx::__7::__pool<true>::_M_reserve_block(unsigned long long, unsigned long long)' /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE10deallocateEPiy[__gnu_cxx::__7::__mt_alloc<int, __gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true> >::deallocate(int*, unsigned long long)]+0x6d): undefined reference to `__gnu_cxx::__7::__pool<true>::_M_reclaim_block(char*, unsigned long long)' afaics the libstdc++7.dll doesn't export e.g. _Znwy* symbols while libstdc++-6.dll looks fine in this area: $ 86_64-pc-mingw32-objdump -p libstdc++-6.dll|grep _Znw [3472] _Znwy [3473] _ZnwyRKSt9nothrow_t