参考了这个博客的安装(https://www.cnblogs.com/ealamyan/p/9903299.html)
出现了一下错误
——————
libmongoc-1.0.so.0.0.0:对‘__cxa_pure_virtual’未定义的引用
libmongoc-1.0.so.0.0.0:对‘__cxa_rethrow’未定义的引用
libmongoc-1.0.so.0.0.0:对‘__gxx_personality_v0’未定义的引用
libmongoc-1.0.so.0.0.0:对‘operator delete[](void*)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘operator new(unsigned long)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::__throw_bad_alloc()’未定义的引用
libmongoc-1.0.so.0.0.0:对‘operator delete(void*)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::string::resize(unsigned long)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::allocator::allocator()’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::string::max_size() const’未定义的引用
libmongoc-1.0.so.0.0.0:对‘vtable for __cxxabiv1::__class_type_info’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::allocator::~allocator()’未定义的引用
libmongoc-1.0.so.0.0.0:对‘__cxa_begin_catch’未定义的引用
libmongoc-1.0.so.0.0.0:对‘vtable for __cxxabiv1::__si_class_type_info’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::string::begin()’未定义的引用
libmongoc-1.0.so.0.0.0:对‘__cxa_end_catch’未定义的引用
libmongoc-1.0.so.0.0.0:对‘operator new[](unsigned long)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::__throw_length_error(char const*)’未定义的引用
libmongoc-1.0.so.0.0.0:对‘std::string::empty() const’未定义的引用
collect2: 错误:ld 返回 1
make[2]: *** [src/libmongoc/aggregation1] 错误 1
make[1]: *** [src/libmongoc/CMakeFiles/aggregation1.dir/all] 错误 2
在Centos7下编译安装C/C++驱动