0

我有一个使用 soci 进行数据库访问的项目。该项目最初是使用 soci 3.2.2 开发的。现在我切换到 soci 3.2.3 并收到以下链接器错误消息:

error LNK2001: unresolved external symbol "public: class soci::details::once_temp_type & __thiscall soci::details::once_temp_type::operator,(class soci::details::type_ptr<class soci::details::use_type_base> const &)" (??Qonce_temp_type@details@soci@@QAEAAV012@ABV?$type_ptr@Vuse_type_base@details@soci@@@12@@Z)

error LNK2001: unresolved external symbol "public: void __thiscall  soci::details::statement_impl::exchange_for_rowset(class soci::details::type_ptr<class soci::details::into_type_base> const &)" (?exchange_for_rowset@statement_impl@details@soci@@QAEXABV?$type_ptr@Vinto_type_base@details@soci@@@23@@Z)

error LNK2001: unresolved external symbol "public: class soci::details::prepare_temp_type & __thiscall soci::details::prepare_temp_type::operator,(class soci::details::type_ptr<class soci::details::use_type_base> const &)" (??Qprepare_temp_type@details@soci@@QAEAAV012@ABV?$type_ptr@Vuse_type_base@details@soci@@@12@@Z)

我在 Windows 机器上使用 Visual Studio 2010。有人知道可能是什么问题吗?

最好的

4

1 回答 1

0

解决方案是使用来自 github 的最新纠错 Soci 库,而不是稳定的下载版本。

最好的

于 2015-06-12T13:18:04.223 回答