当前位置: 代码迷 >> WinCE >> 急cannot open include file:'QtSql'解决方法
  详细解决方案

急cannot open include file:'QtSql'解决方法

热度:112   发布时间:2016-04-28 13:19:21.0
急急急!cannot open include file:'QtSql'
我的程序在编译是报下面错误是什么原因呢?
fatal error c1083:cannot open include file:'QtSql':no such file or directory

------解决方案--------------------
打不开包含文件'QtSql'
没有这个文件或者相应目录
楼主把这个错误定位的代码行贴出来
------解决方案--------------------
数据库方面的东西?
------解决方案--------------------
在.pro文件中添加 QT += sql
------解决方案--------------------
#include <QtSql> 

改成
#include “QtSql” 试试 

------解决方案--------------------
探讨
这是错误代码
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SD
 K\Include\Armv4i\specstrings.h(624) : see previous definition of '__data_entrypo
int'
 .\sqlutil.cpp(3) : fatal error C1083: Cannot open include file: 'QtSql': No such
file or directory
 Generating Code...
 NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 8\VC\ce\b
in\x86_arm\cl.EXE"”: 返回代码“0x2”
 Stop.
 NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\
nmake.exe"”: 返回代码“0x2”
 Stop.

------解决方案--------------------
数据库方面的东西我不懂
我知道VS2005可以设定包含头文件和包含库的路径
可以看看设定有没有问题

------解决方案--------------------
探讨
引用:
#include <QtSql>

改成
#include “QtSql” 试试


试了,不行
  相关解决方案