首页 > 代码库 > ubuntu14.04配置mysql+cdt

ubuntu14.04配置mysql+cdt

1.
sudo
apt-get install mysql-server mysql-clientsudo apt-get install libmysql-dev

2. 修改cdt配置

project-->properities-->c/c++build-->settings-->gcc c complier-->includes-->include paths(-I):

加入:/usr/include/mysql

3.project-->properities-->c/c++build-->settings-->gcc c linker-->libraries-->libraries(-l):

加入:mysqlclient