安装的eclipse c++版本,新建后的c++项目,自动添加include
但是添加lib需要手动设置
1、头文件:project->properties->c/c++ build->settings->gcc c++ compiler->includes
2、库文件:project->properties->c/c++ build->settings->gcc c++ linker->libraries下面
libaries(-l):添加比如highgui,cv,cxcore, mysqlclient, ncurses.....
library search path(-L):添加lib文件所在目录