编译例子出下面的引用错,
common.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN4bson7BSONObjEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIN4bson7BSONObjEE8allocateEmPKv]+0x3c): undefined reference to `operator new(unsigned long)'
/tmp/ccEDaywh.o: In function `bson::BSONObj* std::__uninitialized_copy::__uninit_copy(bson::BSONObj*, bson::BSONObj*, bson::BSONObj*)':
common.cpp:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_]+0x5b): undefined reference to `__cxa_end_catch'
common.cpp:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_]+0x6e): undefined reference to `__cxa_begin_catch'
common.cpp:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPN4bson7BSONObjES4_EET0_T_S6_S5_]+0x86): undefined reference to `__cxa_rethrow'
/tmp/ccEDaywh.o:(.eh_frame+0x12b): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status