例程文件用的是光盘提供的 ,按照手册一步一步的改。不知道哪里配置错误了呢
[root@localhost beep]# gedit main.cpp
[root@localhost beep]# progen -o beep.pro
[root@localhost beep]# ls
beep.cpp beep.h beep.o beep.pro beep.ui main.cpp Makefile Makefile~ moc_beep.cpp moc_beep.o ui2cpp
[root@localhost beep]# tmake -o Makefile beep.pro
[root@localhost beep]# make
Makefile:120: warning: overriding commands for target `moc_beep.cpp'
Makefile:117: warning: ignoring old commands for target `moc_beep.cpp'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86_qtopia/qt/include -o main.o main.cpp
main.cpp:3:35: qtopia/qpeapplication.h: 没有那个文件或目录
main.cpp:5: parse error before `)' token
main.cpp:6: ISO C++ forbids declaration of `QTOPIA_ADD_APPLICATION' with no
type
main.cpp:6: initializer list being treated as compound expression
main.cpp:6: syntax error at end of input
make: *** [main.o] Error 1
[root@localhost beep]#
[ 此帖被0013180在2009-10-29 10:18重新编辑 ]