Good day
I’m able to build Qt 4.8.4 statically with MinGW (similar to these [wiki.batcom-it.net]) instructions). The issue is I want to use MySQL statically with it as well, but I’m not able to do that.
I compiled Qt with mysql plugin enabled. when trying to use it, I’m getting this error.
plugins/sqldrivers/libqsqlmysql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x140): undefined reference to `mysql_stmt_insert_id@4'
This is part of the .pro file
TARGET = static-test
TEMPLATE = app
CONFIG += static
QTPLUGIN += qsqlmysql
LIBS += -LC:/mysql/lib/ -lmysqlclient
What should I do next? should I try to compile mysqlclient with MinGW 4.6 as well?
Or should I go for VS 2010 build?
Thanks!
↧