[root@localhost MysqlHello]# make
g++ -L/usr/lib -lmysqlpp -L/usr/lib/mysql -lmysqlclient hello.cpp -o hello
hello.cpp:2:21: error: mysql++.h: No such file or directory
hello.cpp: In function ‘int main()’:
hello.cpp:6: error: ‘mysqlpp’ has not been declared
hello.cpp:6: error: expected ‘;’ before ‘greeting’
hello.cpp:7: error: ‘greeting’ was not declared in this scope
make: *** [hello] Error 1
I checked again, all required headers and files are in folders specified in 2nd and 3rd line in Makefile, and they are added to g++ parameters in 11 and 14 line in Makefile. How can I configure IDE(eclipse or NetBeans) to build this program.
I couldn't build with makefile, but it works with eclipse. In the project properties I added directories and libraries path showed in Makefile, and that is all there is to it.