./debug\SqlData.o: In function `SqlData':
F:\Info\system/SqlData.cpp:16: undefined reference to `_imp___ZN12QSqlDatabaseC1Ev'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabase17defaultConnectionE'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabase11addDatabaseERK7QStringS2_'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseaSERKS_'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
F:\Info\system/SqlData.cpp:19: undefined reference to `_imp___ZN12QSqlDatabase11setHostNameERK7QString'
F:\Info\system/SqlData.cpp:20: undefined reference to `_imp___ZN12QSqlDatabase15setDatabaseNameERK7QString'
F:\Info\system/SqlData.cpp:21: undefined reference to `_imp___ZN12QSqlDatabase11setUserNameERK7QString'
F:\Info\system/SqlData.cpp:22: undefined reference to `_imp___ZN12QSqlDatabase11setPasswordERK7QString'
F:\Info\system/SqlData.cpp:24: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
F:\Info\system/SqlData.cpp:16: undefined reference to `_imp___ZN12QSqlDatabaseC1Ev'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabase17defaultConnectionE'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabase11addDatabaseERK7QStringS2_'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseaSERKS_'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
F:\Info\system/SqlData.cpp:18: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
F:\Info\system/SqlData.cpp:19: undefined reference to `_imp___ZN12QSqlDatabase11setHostNameERK7QString'
F:\Info\system/SqlData.cpp:20: undefined reference to `_imp___ZN12QSqlDatabase15setDatabaseNameERK7QString'
F:\Info\system/SqlData.cpp:21: undefined reference to `_imp___ZN12QSqlDatabase11setUserNameERK7QString'
F:\Info\system/SqlData.cpp:22: undefined reference to `_imp___ZN12QSqlDatabase11setPasswordERK7QString'
F:\Info\system/SqlData.cpp:24: undefined reference to `_imp___ZN12QSqlDatabaseD1Ev'
./debug\SqlData.o:F:\Info\system/SqlData.cpp:27: undefined reference to `_imp___ZN12QSqlDatabase4openEv'
./debug\SqlData.o:F:\Info\system/SqlData.cpp:29: undefined reference to `_imp___ZNK12QSqlDatabase9lastErrorEv'
./debug\SqlData.o:F:\Info\system/SqlData.cpp:29: undefined reference to `_imp___ZNK9QSqlError4textEv'
./debug\SqlData.o:F:\Info\system/SqlData.cpp:29: undefined reference to `_imp___ZN9QSqlErrorD1Ev'
./debug\SqlData.o:F:\Info\system/SqlData.cpp:29: undefined reference to `_imp___ZN9QSqlErrorD1Ev'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\system.exe] Error 1
mingw32-make: *** [debug] Error 2
进程"D:\QT\mingw\bin\mingw32-make.exe"退出,退出代码 2 。
构建项目system 时发生错误 (目标: 桌面)
------解决方案--------------------
看一下你程序保存的路径里有没有中文,路径里是不能有中文的~
------解决方案--------------------
(目标: 桌面)
mingw32最好不要在文件路径中带空格和中文