我有一个使用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 2010。有人知道会有什么问题吗?
凌驾
发布于 2015-06-12 13:18:04
解决方案是使用来自github的最新错误更正的Soci库,而不是稳定的下载版本。
凌驾
https://stackoverflow.com/questions/30214573
复制相似问题