cpp
#include <iostream>
#include <mysql++.h>
using namespace std;
int main()
{
cout << "Hello MySQL++" << endl;
return 0;
}
编译报错:

Build messages
/usr/local/include/mysql++/common.h|232|fatal error: mysql.h: No such file or directory|
Build log
/usr/local/include/mysql++/common.h:232:11: fatal error: mysql.h: No such file or directory
解决办法:
1.在终端里面搜索到mysql.h所在的路径

2.根据mysql.h所在的路径,再搜索一下,mysql的库文件所在路径,

- 然后配置一下codeblocks的全局变量mysql

4.配置一下工程的build options

- 再运行程序,就成功了
