目前我把下载的mysql/Connector 下载后放在了project内 但是报错信息如下

报错信息如下In file included from /Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlConnection.h:/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlFiles/include/mysql_connection.h7::

15:/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlFiles/include/mysql_connection.h10::15 :10: error: error: 'cppconn/connection.h' file not found with include; use "quotes" instead'cppconn/connection.h' file not found with include; use "quotes" instead

#include #include

^~~~~~~~~~~~~~~~~~~~~~

^~~~~~~~~~~~~~~~~~~~~~ "cppconn/connection.h"

"cppconn/connection.h"

In file included from In file included from /Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlConnection.cpp:5:

In file included from /Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlConnection.h:8:

/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlFiles/include/mysql_driver.h/Users/wsgdrfz/study/c++/Libary_System/librarySystem/main.cpp::152::

10In file included from :/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlConnection.h :8:

error: /Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlFiles/include/mysql_driver.h:15'cppconn/driver.h' file not found with include; use "quotes" instead:10

: error: 'cppconn/driver.h' file not found with include; use "quotes" instead

#include

^~~~~~~~~~~~~~~~~~

#include "cppconn/driver.h"

^~~~~~~~~~~~~~~~~~

"cppconn/driver.h"

/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlConnection.cpp:28:12: error: calling a protected destructor of class 'sql::Driver'

delete driver;

^

/Users/wsgdrfz/study/c++/Libary_System/librarySystem/sqlFiles/include/cppconn/driver.h:26:10: note: declared protected here

virtual ~Driver() {}

^

2 errors generated.

3 errors generated.

make[2]: *** [CMakeFiles/librarySystem.dir/main.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[2]: *** [CMakeFiles/librarySystem.dir/sqlConnection.cpp.o] Error 1

make[1]: *** [CMakeFiles/librarySystem.dir/all] Error 2

make: *** [all] Error 2

文件引用情况如下:

在网上搜索有很多连接的方法 目前还是有点晕 望指教

clion导入mysql库_CLion如何添加依赖库 ? 需要把mysql/Connector c++放入 用cpp连接数据库...相关推荐

  1. deepin下Clion连接mysql_CLion如何添加依赖库 ? 需要把mysql/Connector c++放入 用cpp连接数据库...

    目前我把下载的mysql/Connector 下载后放在了project内 但是报错信息如下 报错信息如下 In file included from /Users/wsgdrfz/study/c++ ...

  2. Eclipse 添加依赖 库 Libary

    添加项目工程依赖首先打开eclipse,选中要添加依赖的项目.点击build path->config build path选项. 2 点击config build path选项弹出下图所示的界 ...

  3. sklearn库安装_没有依赖库也能跑机器学习模型!推荐一个强大工具m2cgen

    晓查 发自 凹非寺 量子位 报道 | 公众号 QbitAI m2cgen(Model 2 Code Generator)是一个轻量级代码生成器,它可以将训练好的机器学习模型转换成无需依赖库的本地代码. ...

  4. android.mk添加静态库,Android Gradle添加静态库

    看看这个 sample. >告诉编译器头部的位置(在android.ndk {}中): CFlags ="-I ${file("path / to / headers&quo ...

  5. rpath添加依赖库搜索路径

    windows 下一个程序的dll搜索路径首先是程序目录,然后是一些系统目录.linux 下的可以通过设置 LD_LIBRARY_PATH 等方法来添加搜索路径,但是这些路径是定死的,如果要实现程序目 ...

  6. qt 添加依赖库lib_在QT中添加LIB的方法

    自动显示隐藏布局的listView 借助View的OnTouchListener接口来监听listView的滑动,通过比较与上次坐标的大小,判断滑动方向,并通过滑动方向来判断是否需显示或者隐藏对应的布 ...

  7. qt 添加依赖库lib_如何在Qt Creator中添加库文件和头文件目录

    在使用QtCreator开发图像处理程序的时候想加入Opencv库来处理图形,添加头文件,需要编辑工程文件夹下的.pro文件在文件中添加以下内容,即可包含头文件的文件夹: INCLUDEPATH += ...

  8. iOS 搭建XMPP环境时添加依赖库报错及解决

    错误: 解决方法: 将XMPP文件底下的module和vendor的路径添加到Hearder Search Paths里即可. 转载于:https://juejin.im/post/5a3129385 ...

  9. php 中绑定的 gd 库,为PHP添加GD库支持

    1.安装zlib,一般Centos系统自带已经安装好,可以用以下命令去查看: [root@Test-Web2 ~]# rpm -qa | grep zlib zlib-1.2.1.2-1.2 zlib ...

最新文章

  1. 深度学习环境搭建之常识(anaconda,cuda,cudnn,python,tensorflow等概念)
  2. 得到windows系统图标的解决方案(转)
  3. MySQL学习(四)查询
  4. MongoDB 查询超时异常 SocketTimeoutException
  5. solr4.1 DataImport MYSQL批量导入
  6. 深度探索C++ 对象模型(3)-默认构造函数Default Constructor续
  7. sublime中的emmet插件的使用技巧
  8. Listary一款不只是程序员需要的软件
  9. AD9如何设置原点位置
  10. 调节汉化版Eclipse的字体大小
  11. depot_tools下载
  12. Simulink中scope变为白色背景
  13. 修改过----AtCoder Beginner Contest 190 D Staircase Sequences(唯一分解求因子数)
  14. 函数TEXT - 补0实现数字固定位数输出
  15. 亚马逊美国站店铺个人如何开店?亚马逊美国站卖服装好做吗?
  16. nginx 进行 https 反向代理 nextcloud 后 APP 不能访问的解决办法
  17. jaDate日期控件 开始日期与结束日期、日期联动
  18. ExcelVBA 之Select Case
  19. 中国万网官方网站被黑 黑客留言调侃
  20. Linux下的USE法

热门文章

  1. 5分钟k线数据 存储_短线高效炒股——60分钟K线买卖法,抓住买卖时机,看完受益匪浅!...
  2. 希尔排序是一种稳定的排序算法_排序算法—希尔排序
  3. SQL语句操作优先级顺序
  4. C语言给考场编号,求:用C设计考场的编排,生成准考证号基本要求:br/(1)用 爱问知识人...
  5. php中div重叠,div重叠问题
  6. mysql分组查询学生平均年龄_mysql练习题
  7. python画图y轴在右侧_Matplotlib:图形左边缘和Y轴之间的固定间距
  8. python构造方法new_Python 之 __new__() 方法与实例化(转)
  9. 纵坐标范围_探索频率范围与频响的奥秘
  10. mysqli扩展是mysql扩展的增强版_PHP学习笔记【22】--PHP数据库编程 mysql扩展库 和mysqli扩展库...