如何配置codeblocks以编译Mysql~
2014-12-17 15:42
253 查看
如何配置codeblocks以编译Mysql~
分类: Linux mysql2012-09-03 15:51 872人阅读 评论(2) 收藏 举报mysqlcompilerlinkerincludesearchbuild
linux下,使用了codeblocks,有各种编写代码的方便之处,但是遇到类似mysql这样的文件,编译时需要附带链接库等,就感觉手足无措,
似乎就没办法编译了,本来是用codeblocks编辑好代码后,仍然通过终端来编译,但是毕竟不是个办法,so,果断百度找办法……
以下是搜到的可以顺利编译Mysql的解决方法:
进入 project ------> build options
a. compiler settings tab -------> other options: 添加 `mysql_config --cflags` (此处非单引号,而是反点,在Tab键的上面一个按键)
b. linker settings tab -> other options: 添加 `mysql_config --libs`
to get codecompletion you probably need to add the include dir to your project
c. search directories tab -> compiler: 添加 /usr/include/mysql
转自:/article/2149294.html
相关文章推荐
- 如何配置codeblocks以编译Mysql~
- linux系统下如何配置codeblocks以编译Mysql
- UltraEdit 13a+2如何配置编译运行!!
- MySQL代码如何在Windows环境下编译
- VS2005下如何安装配置编译Qt4.5
- 手把手教你如何配置和编译ogre 1.7.0 + cegui 0.7.1
- 第1章 Java基本概念及环境配置——FAQ1.15 如何编译. 运行Java应用程序?
- 在Linux操作下如何编译安装php&mysql&apache
- phpmyadmin中MySQL如何加密(配置)
- VS2005下如何安装配置编译Qt4.5
- MySQL的编译配置
- 如何在 Yii 配置中为 MySQL 设置自定义端口
- 如何安装配置基于两台服务器的MySQL集群
- Linux下MySQL的编译安装和简单配置
- VS2005下如何安装配置编译Qt4.5
- CodeBlocks学习(五) 如何编译多个目标
- Fedora5下配置MySQL (很有参考价值的 MySQL资料 包括如何在Linux文件系统移动MySQL数据库的位置)
- 如何自己配置和编译一个完整的Linux嵌入式开发环境?
- VS2005下如何安装配置编译Qt4.5
- 手把手教你如何配置和编译ogre 1.7.0 + cegui 0.7.1