目前我把下载的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

文件引用情况如下:

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

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

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

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

  2. Windows下为有道词典添加词库(图文详解)

    原文地址:LittleStarLord的博客    Windows下为有道词典添加词库(图文详解)http://blog.sina.com.cn/s/blog_6c0267490102wett.htm ...

  3. linux救援模式下卸载根目录,删除Linux的依赖库并进入救援模式恢复

    删除Linux的依赖库并进入救援模式恢复 删除Linux的依赖库并进入救援模式恢复 模拟一下依赖库文件被删,并进入救援模式恢复 系统:CentOS7 一.删除mv的依赖库文件 删除/lib64/lib ...

  4. Eclipse 添加依赖 库 Libary

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

  5. mysql添加函数库_创建mysql函数

    如何使用MySQL提升权限 前不久网上公开了一个MySQL Func的漏洞,讲的是使用MySQL创建一个自定义的函数,然后通过这个函数来攻击服务器.最早看到相关的报道是在o-otik上,但是公布的是针 ...

  6. C语言如果实现电脑与plc通讯,PLC怎么连接电脑?怎么把在电脑编程好的程序放入PLC运行?...

    PLC怎么连接电脑,首先需要一根编程电缆线连接PLC和我们的电脑,连接线的种类不同所需要安装的驱动就不一样,安装驱动有时候会在安装编程软件的时候询问是否安装相对应的驱动,如果选择否,则需要在后期手动进 ...

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

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

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

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

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

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

最新文章

  1. 在php中_post啥意思,php中$_post什么意思
  2. 【金三银四跳槽季】Java工程师如何在1个月内做好面试准备?
  3. 训练Epoch, Batch, Iteration
  4. python strip() 函数探究
  5. Linux之CentOS找不到configure
  6. Scala入门到精通——第十五节 Case Class与模式匹配(二)
  7. php 拼接wav,将两个Wav文件合并为一个 | 学步园
  8. Java生产环境下性能监控与调优详解 第7章 JVM层GC调优
  9. mysql各版本jar包下载
  10. Android通过RecyclerView实现手风琴效果
  11. 18 个 JavaScript 入门技巧
  12. MySQL教程——2 中级篇(索引、视图、存储过程)
  13. Appium+python自动化3-启动淘宝app(转)
  14. 浅谈5G通信中的两个微波技术
  15. ZJM与生日礼物【字典树】
  16. 七牛云上传图片和视频
  17. Java:一般数据结构
  18. 军工企业数据中心机房设计
  19. SQLServer Stuff函数的用法
  20. 新手如何快速入门Python(菜鸟必看篇)

热门文章

  1. @configurationproperties注解的使用_SpringBoot常用注解的简单理解
  2. 电脑显示链接网络正常但是不能上网,用某些软件会提示系统丢失libeay32.dll
  3. Windows平台下动态链接库的总结
  4. linux gpt引导分区,linux 引导gpt分区windows及clover
  5. 【利好工具】JavaScript及时运行调试工具
  6. android 仿京东地址选择_Android 开发:仿美团地址选择
  7. 往vxe-table添加渲染器怎么添_赚大了!飘窗上装书桌,加扇折叠窗,等于为家里又多添一间房...
  8. php与mysql连接程序_PHP与Mysql连接
  9. 课时27.base(掌握)
  10. 今天发现新大陆:haml和Emmet