Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 2 times, last edit by "eng16danbo" (Apr 29th 2008, 12:31pm)
Quoted
Originally posted by eng16danbo
I installed Qt today.
I run Ubuntu7.10 and with 4.3.2 version of Qt.
When I described following code,I got following error messages.
<source code>
//Hello.cpp
1 #include <QApplication>
2 #include <QLabel>
3
4 int main (int argc,char *argv[])
5 {
6 Qapplication app(argc, argv);
7 Qlabel label = new Qlabel("Hello,Qt!");
8 label->show();
9 return app.exec();
10 }
11
<error message>
Hello.cpp:4: Unknown test function: int main
Hello.cpp:6: Unknown test function: QApplication app
Hello.cpp:6: Parse Error ('QApplication app(argc, argv);')
Error processing project file:
Simply Idon't solve either installation mistake or coding error.
Would you help me?
Thanks.
no worries dear....