【发布时间】:2011-11-19 12:42:58
【问题描述】:
我尝试构建 mongodb c++ 2.0 驱动,但得到以下错误信息:
security_commands.cpp:(.text+0x865): 未定义的引用
mongo::CmdAuthenticate::getUserObj(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' security_commands.cpp:(.text+0xa59): undefined reference tomongo::CmdAuthenticate::authenticate(std::basic_string, std::allocator > const&, std::basic_string, std::allocator > const&, bool)' mongo/db/security_commands.os: 在函数中_GLOBAL__sub_I_security_commands.cpp': security_commands.cpp:(.text.startup+0x1a6): undefined reference tovtable for mongo::CmdLogout' mongo/db/security_common.os: 在函数中 `mongo::AuthenticationInfo::_isAuthorized(std::basic_string, std::allocator > const&, int) const':
【问题讨论】:
-
您没有链接到正确的库
标签: c++ mongodb compiler-errors driver