【问题标题】:Mongo new c++ driver errorMongo新的C++驱动错误
【发布时间】:2016-05-09 11:08:05
【问题描述】:

当我尝试编译我的 C++ 程序时,在与 MongoDB 新 C++ 驱动程序 (mongocxx) 链接时出现错误,提示存在未定义的引用。

这个问题很容易重现。只需尝试在快速入门指南 (https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)) 中编译测试示例。这是错误代码:

hellomongo.cpp:(.text+0x3f): undefined reference to `mongocxx::v_noabi::uri::k_default_uri[abi:cxx11]'

我正在使用最新的 3.0.1 版本的 C++ 驱动程序。错误也存在于 3.0.0 中。

【问题讨论】:

    标签: c++ mongodb driver


    【解决方案1】:

    我已在 mongodb-user 列表中回复了您相同的问题:

    https://groups.google.com/forum/#!topic/mongodb-user/BQvTonyD9pE

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多