- C/C++ code
C:\Windows\system32>cd c:\QtSDK\src\plugins\sqldrivers\mysqlc:\QtSDK\src\plugins\sqldrivers\mysql>mingw32-makemingw32-make -f Makefile.Debugmingw32-make[1]: Entering directory `c:/QtSDK/src/plugins/sqldrivers/mysql'g++ -mthreads -shared -Wl,--out-implib,debug\libqsqlmysqld4.a -o debug\qsqlmysqld4.dll debug/main.o debug/qsql_mysql.o debug/moc_qsql_mysql.o -L"c:\QtSDK\Desktop\Qt\4.8.0\mingw\lib" debug\qsqlmysqld_resource_res.o -llibmysql C:/mysql/libmysql.lib -lQtSqld4 -lQtCored4c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: [color=#FF0000]cannot find -llibmysql[/color]collect2: ld returned 1 exit statusmingw32-make[1]: *** [debug\qsqlmysqld4.dll] Error 1mingw32-make[1]: Leaving directory `c:/QtSDK/src/plugins/sqldrivers/mysql'mingw32-make: *** [debug] Error 2c:\QtSDK\src\plugins\sqldrivers\mysql>
请问这个cannot find -llibmysql错误是怎么回事?
------解决方案--------------------
1.装下MySQL;
2..pro中指定安装后MySQL的include以及lib的位置