I\'m building an open source project from source,
and it needs to include :
#if USE_MYSQL #include #endif
g++ -o Programname $(mysql_config --cflags) Programfile.cpp $(mysql_config --libs)
Does the trick in Linux.