Qt中使用数据库时编译出错
来源:互联网 发布:java工程师和程序员 编辑:程序博客网 时间:2024/04/27 13:20
原文地址:http://os.chinaunix.net/a2008/0514/980/000000980029.shtml
error:QtSql:Nosuchfileordirectory
I wrote a program to test that how to connect to mysql with qt4,but I got the error message as follows when I compile it:
error: QtSql: No such file or directory
There are two method to solve this problem.
1.After execute qmake -project ,edit .pro file and add QT variable definition.
QT += sql
2.edit qmake configuration file,append QT variable definition
Just find the line like this:
QT += core gui network
change it :
QT += core gui network sql
- Qt中使用数据库时编译出错
- qt 编译时显示链接出错
- QT编译出错解决方法
- Qt编译出错
- 日记:qt 编译出错
- 使用caffe时编译出错
- 如何在QT中编译数据库驱动
- 如何在QT中编译数据库驱动
- QT:在Qt中使用SQLite数据库
- window下Qt编译出错
- Qt编译出错--可选解决方法
- Windows QT工程编译出错
- Qt中使用SQLITE数据库
- 在QT中使用数据库
- QT中使用数据库(SQLite)
- 如何在 静态编译的QT 5.5.1 中 使用数据库插件连接 ODBC
- 使用QUdpSocket时编译出错的问题
- EJB3.0中使用Ant进行编译出错的解决办法
- C语言在宏定义中##是指
- static class 静态类
- ubuntu下编译Linux内核时不能make menuconfig
- 驱动模块初始化函数返回值
- kfree()只能用来释放kmalloc()申请的空间
- Qt中使用数据库时编译出错
- jquery基础学习
- 流泪的再见
- 限制MKMapView显示的区域
- 1772. Ski-Trails for Robots (STL SET)
- zend studio10.1.0安装破解汉化设置配置
- IntentService和Service比较
- Jabber 协议概述
- ASP.NET Cookies简单应用 [ASP.NET | Cookies]