0%

ubuntu14.04配置mysql+cdt

也是早先不会的东西。。

  1. 1
    2
    sudo apt-get install mysql-server mysql-client
    sudo 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