MySQL驱动程序不在QT上构建

时间:2019-02-03 14:36:42

标签: mysql qt

我正在尝试为Qt构建MySQL驱动程序。编译时出现以下奇怪错误:

release\moc_qsql_mysql.cpp:11:2: error: #error "The header file 'qsql_mysql.cpp' doesn't include <QObject>."
release\moc_qsql_mysql.cpp:19: error: expected constructor, destructor, or type conversion before 'static'
release\moc_qsql_mysql.cpp:42: error: 'QMYSQLResultPrivate' has not been declared
release\moc_qsql_mysql.cpp:42: error: variable or field 'qt_static_metacall' declared void
release\moc_qsql_mysql.cpp:42: error: 'QObject' was not declared in this scope
release\moc_qsql_mysql.cpp:42: error: '_o' was not declared in this scope
release\moc_qsql_mysql.cpp:42: error: 'QMetaObject' has not been declared
release\moc_qsql_mysql.cpp:42: error: expected primary-expression before 'int'
release\moc_qsql_mysql.cpp:42: error: expected primary-expression before 'void'

0 个答案:

没有答案