CentOS: Using GCC 4.7 from devtoolset results in linking libstdc++ incorrectly (undefined symbols)
问题 I am using the devtoolset-1.0 for CentOS 6.3 in order to upgrade temporarily the GCC version. Although I am now able to compile my C++ application, the final binary is missing some symbols: $ ldd -d -r myapp $ [..] $ libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003216e00000) $ [..] $ undefined symbol: _ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node_base7_M_hookEPS0_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node