havafun 发表于 2022-6-30 15:16:28

【中国软件杯大赛】使用数据库

在QT中连接数据库,可以构建,但是在部署运行时会发生找不到符号错误,请问是需要引入什么库吗?另外qt共享库也部署过了。
Library /apps/face/face can not find symbol: _ZN12QSqlDatabase17defaultConnectionE
Library /apps/face/face can not find symbol: _ZN12QSqlDatabase11addDatabaseERK7QStringS2_
Library /apps/face/face can not find symbol: _ZN12QSqlDatabaseD1Ev
Library /apps/face/face can not find symbol: _ZN12QSqlDatabaseaSERKS_
Library /apps/face/face can not find symbol: _ZN12QSqlDatabase15setDatabaseNameERK7QString
Library /apps/face/face can not find symbol: _ZN12QSqlDatabaseC1Ev

页: [1]
查看完整版本: 【中国软件杯大赛】使用数据库