繁体   English   中英

使用Soci 3.2.3而不是3.2.2的链接错误

[英]Linking error using soci 3.2.3 instead of 3.2.2

我有一个使用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。 有人知道可能是什么问题吗?

最好的

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

最好的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM