编译出现以下错误,莫名其妙:
../gh-memory/libgh2memory.so:对‘operator delete(void*)’未定义的引用 ../gh-memory/libgh2memory.so:对‘std::_Rb_tree_decrement(std::_Rb_tree_node_base*)’未定义的引用 ../gh-memory/libgh2memory.so:对‘std::_Rb_tree_increment(std::_Rb_tree_node_base*)’未定义的引用 ../gh-memory/libgh2memory.so:对‘__gxx_personality_v0’未定义的引用 ../gh-memory/libgh2memory.so:对‘std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)’未定义的引用 ../gh-memory/libgh2memory.so:对‘operator new(unsigned long)’未定义的引用 ../gh-memory/libgh2memory.so:对‘std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)’未定义的引用 ../gh-memory/libgh2memory.so:对‘std::__throw_bad_alloc()’未定义的引用 网上搜索了一下,改用g++,就可以顺利编译通过.
难道是使用的库不同?