LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 655|回复: 0

关于QT的问题~~ 各位请指点

[复制链接]
发表于 2006-5-29 23:47:09 | 显示全部楼层 |阅读模式
这是我执行hello程序时候出现的问题 程序指定没问题- - 照书打的 哪位知道怎么回事?
[root@fkw root]# cd /root/qt
[root@fkw qt]# qmake
[root@fkw qt]# make
g++ -c -pipe -Wall -W -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions  -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/lib/qt-3.1/include -I.ui/ -I.moc/ -o .obj/hello.o hello.cpp
hello.cpp:1:24: QApplication: 没有那个文件或目录
hello.cpp:2:23: QPushButton: 没有那个文件或目录
hello.cpp: In function `int main(int, char**)':
hello.cpp:5: error: `QApplication' undeclared (first use this function)
hello.cpp:5: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
hello.cpp:5: error: syntax error before `(' token
hello.cpp:6: error: `QPushButton' undeclared (first use this function)
hello.cpp:7: error: `hello' undeclared (first use this function)
hello.cpp:9: error: `app' undeclared (first use this function)
hello.cpp:4: warning: unused parameter `int argc'
hello.cpp:4: warning: unused parameter `char**argv'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表