Makefile:120: warning: overriding commands for target `moc_hello.cpp'
Makefile:117: warning: ignoring old commands for target `moc_hello.cpp'
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/qt-2.3.7/include -o main.o main.cpp
main.cpp: In function `int main(int, char**)':
main.cpp:9: error: parse error before `(' token
make: *** [main.o] Error 1
#include "qwidget.h"
#include "hello.h"
#include <qapplication.h>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
Hello *hello=new Form1();
hello->show();
app.setMainWidget(hello);
return(app.exec());
}
上面是main程序,应该是没有错的。这个程序就是用designer生成一个Form1。hello.h hello.cpp都是没有修改的。总是感觉是不是连接出问题阿!
请各位热爱linux的朋友们帮忙看看。不胜感谢