Including mysql and creating a connection in Qt gives me compile problems:
MYSQL* conn;
conn = mysql_init(NULL);
If I manually qmake and then make, I see that mysql isn't being properly linked:
qmake -o Makefile "INCLUDEPATH+=/usr/local/Cellar/mysql/5.1.54/include" "LIBS+=/usr/local/Cellar/mysql/5.1.54/lib/mysql/libmysqlclient.a"
Undefined symbols: "_mysql_init", referenced from: _main in main.o ld: symbol(s) not found collect2: ld returned 1 exit status
What is the proper method for linking mysql to my Qt project?