Quote Originally Posted by amit_pansuria View Post
"INCLUDEPATH+=/usr/local/mysql/include" "LIBS+=-L/usr/lib/mysql -lmysqlclient"
One more thing, you take headers from /usr/local/mysql, but the library itself from /usr/lib/mysql. Do you have only one version of MySQL client library? If not, shouldn't you use only one of these paths?