简体   繁体   English

Soci C ++ sqlite3后端摘要生成

[英]Soci C++ sqlite3 backend abstract on build

I'm facing an issue building an application with SOCI C++ 3.2 with mysql and sqlite3 backends. 我在使用带有MySQL和sqlite3后端的SOCI C ++ 3.2构建应用程序时遇到问题。 Here are the headers I included: 这是我包含的标题:

 #include <soci.h> #include <soci-backend.h> #include <soci-mysql.h> #include <soci-sqlite3.h> 

Here is the building errors I'm getting: 这是我遇到的建筑错误:

 /usr/include/soci/sqlite3/soci-sqlite3.h:263: erreur: cannot declare variable 'soci::sqlite3' to be of abstract type 'const soci::sqlite3_backend_factory' /usr/include/soci/sqlite3/soci-sqlite3.h:257: note: because the following virtual functions are pure within 'const soci::sqlite3_backend_factory': /usr/local/include/soci/soci-backend.h:271: note: virtual soci::details::session_backend* soci::backend_factory::make_session(const soci::connection_parameters&) const 

I did not find much information about this issue on the web so any help is appreciated! 我在网络上找不到有关此问题的太多信息,因此可以提供任何帮助!

I understood the issue, soci-3.1 was originally installed on my environment (not by myself), and my autoconf macros were selecting files from both my installation of soci-3.2 performed from the source and the old one. 我理解了这个问题,最初是在我的环境中安装了soci-3.1(不是由我自己安装的),并且我的autoconf宏正在从源代码和旧版本执行的soci-3.2安装中选择文件。

So I had to uninstall the previous one... 所以我不得不卸载上一个...

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

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