#include "hello.h"
#include <QApplication>
int main(int argc,char*argv[])
{
QApplication app (argc,argv);
hello MyHelloForm;
MyHelloForm.show();
return app.exec();
}
错误:
../mypic/main.cpp: 在函数‘int main(int, char**)’中:
../mypic/main.cpp:8:5: 错误:‘hello’在此作用域中尚未声明
../mypic/main.cpp:8:11: 错误:expected ‘;’ before ‘MyHelloForm’
../mypic/main.cpp:10:16: 错误:expected unqualified-id before ‘.’ token
新手请教:QT编译问题
-
- 帖子: 2
- 注册时间: 2010-12-07 9:18
-
- 帖子: 114
- 注册时间: 2010-01-03 10:37
Re: 新手请教:QT编译问题
hello.h是什么东西?
- erol
- 帖子: 61
- 注册时间: 2010-05-16 23:17