我的QT安装好以后,建立了文件运行了qmake-project ,qmake 和make等命令后出现了如下字样,
各位大虾 谁能告诉我这是什么原因阿
(已经生成了.pro和makefile文件)
hfeng@hfeng-desktop:~$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o t1.o t1.cpp
t1.cpp:3:26: 错误: qapplication.h:没有该文件或目录
t1.cpp:4:25: 错误: qpushbutton.h:没有该文件或目录
t1.cpp: In function ‘int main(int, char**)’:
t1.cpp:9: 错误: ‘QApplication’在此作用域中尚未声明
t1.cpp:9: 错误: expected `;' before ‘a’
t1.cpp:11: 错误: ‘QPushButton’在此作用域中尚未声明
t1.cpp:11: 错误: expected `;' before ‘hello’
t1.cpp:12: 错误: ‘hello’在此作用域中尚未声明
t1.cpp:14: 错误: ‘a’在此作用域中尚未声明
t1.cpp: At global scope:
t1.cpp:7: 警告: 未使用的参数‘argc’
t1.cpp:7: 警告: 未使用的参数‘argv’
make: *** [t1.o] 错误 1
[ 此帖被haofengzou在2009-09-27 21:57重新编辑 ]