在编译一个很简单的helloworld程序的时候出现如下问题:
arm-linux-gcc:-E required when input is from standard input
我在编译别的简单的程序的时候可以成功,应该说arm-linux-gcc版本是没有问题的 而且环境变量设置正确,但我在编译下面这个程序的时候,出现了上面的那个问题:
#include<qapplication.h>
#include<qlabel.h>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QLabel *label=new QLabel("hello,can you see me? my god!",0);
label->setAlignment(Qt::AlignVCenter|Qt::AlignHCenter);
label->setGeometry(10,10,200,80);
//app.setMainWidget(label);
label->show();
int result=app.exec();
return result;
}