hello/hello.cpp:5:15: error: expected ‘;’ before ‘app’
hello/hello.cpp:6:22: error: expected type-specifier before ‘Qlabel’
hello/hello.cpp:6:22: error: cannot convert ‘int*’ to ‘QLabel*’ in
initialization
hello/hello.cpp:6:22: error: expected ‘,’ or ‘;’ before ‘Qlabel’
hello/hello.cpp:7:13: error: statement cannot resolve address of
overloaded function
hello/hello.cpp:8:9: error: ‘app’ was not declared in this scope
hello/hello.cpp: At global scope:
hello/hello.cpp:3:5: warning: unused parameter ‘argc’
hello/hello.cpp:3:5: warning: unused parameter ‘argv’
make: *** [hello.o] Error 1
The code was
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
I am unable to understand what could be the problem
plz help
--
You received this message because you are subscribed to the Google Groups "FOSS@ITBHU" group.
To post to this group, send email to foss-...@googlegroups.com.
To unsubscribe from this group, send email to foss-itbhu+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foss-itbhu?hl=en.