Ok. Lets explain step by step.
First I created a simple project called test10. I built and ran it and I have the hello world.
Next step
Project->Build Options ->Search directories-> /usr/include/mysql
Project -> Build Options -> Compiler Settings tab -> Other Options and enter `mysql_config --cflags`
Project -> Build Options -> Linker Settings tab -> Other Options and enter `mysql_config --libs`
I added the mysql.h and now my program is
#include <iostream>
#include <mysql.h>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
Next
build-> clean
build-> build and run
'It seems that this project have not been built yet.Do you want to built it now?' I clicked Yes.
I have the following in the build log
-------------- Build: Debug in test10 ---------------
Compiling: main.cpp
g++: fatal error: no input files
compilation terminated.
Process terminated with status 4 (0 minutes, 4 seconds)
0 errors, 0 warnings