Home > Database > Mysql Tutorial > body text

qt-用Qt连接mysql遇到问题,求大神解答

WBOY
Release: 2016-06-06 09:44:07
Original
1204 people have browsed it

mysqlqt

#include
#include
#include
#include

int main(int argc, char *argv[])
{
QApplication a(argc, argv);

<code>qDebug() </code>
Copy after login

}
用Qt连接mysql,检测驱动写了这么几句代码出现以下问题,求大神解答!
无法解析的外部符号 "__declspec(dllimport) public: static class QStringList cdecl QSqlDatabase::drivers(void)" (imp_?drivers@QSqlDatabase@@SA?AVQStringList@@XZ),该符号在函数 _main 中被引用

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!