首页| 论坛| 消息

标题:【提问】装好了QTfor vs.net2003,也可以看到Qt toolbox,可是编译出错,过来人帮忙呀
作者:北方狼
日期:2005-12-06 18:07
内容:

装好了QTfor vs.net2003,在VC上也可以看到Qt toolbox,可就是编译出错,怎么设置?哪位给个详尽的解决方案?谢谢啦
e:\项目\qtfirst\hello.cpp fatal error C1083: 无法打开包含文件:“qapplication.h”: No such file or directory


斑竹说的:
“请注意查看Qt Installing版置顶帖,其中有VS2003和Eclipse的设置(这两个是推荐的,不推荐使用DEVCPP)”
好象不曾见过置顶有呀?


#1 Re:【提问】装好了QTfor vs.net2003,也可以看到Qt toolbox,可是 [heg48854 12-06 18:45]
一块儿看看,是不是.net2003的环境设置里没有加入QT的include目录?
.net2003的tools菜单->option->project->vc++ directory->第二个下拉菜单中选项include,在下边显示的目录中添加QT安装目录中的include目录
#2 [111111 12-06 19:04]
哪里有QT FOR 2003呢?
#3 [北方狼 12-06 21:05]
按照你说的加了include
能通过编译了,可是又有一大堆的链接错:
qtfirst error LNK2020: 无法解析的标记(0A00000A) QString.__dtor
qtfirst error LNK2020: 无法解析的标记(0A000017) QPushButton.__dtor
qtfirst error LNK2020: 无法解析的标记(0A000019) __imp_?shared_null@QListData@@2UData@1@A
qtfirst error LNK2020: 无法解析的标记(0A00001B) QApplication.__dtor
qtfirst fatal error LNK1120: 4 个无法解析的外部命令

求助!
#4 [北方狼 12-06 21:17]
仍然是hello world
#include
#include

int main( int argc, char **argv)
{
QApplication a( argc, argv);
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
//a.setMainWidget( &hello );
hello.show();
return a.exec();
}
#5 Re:【提问】装好了QTfor vs.net2003,也可以看到Qt toolbox,可是 [XChinux 12-06 21:50]
Qt4 for VS2003有两个安装文件的,还有一个是用于连接的。
两个都得安装后才能正常编译。

<< 1 2 >> (1/2)

回复 发表
主题 版块