Cant get simple hello qt program to compile on android c4droid IDE

  • I copied and pasted the simple program just to test and I keep getting the same error:

    line 1 - sytax error, Unexpected word (expecting)")
    line 1 - androideabi-g++-UNEXPECTED WORD (expecting)")

    @ #include <QApplication>
    #include <QLabel>

    int main(int argc, char* argv[]) {
    QApplication app(argc, argv);
    QLabel *label = new QLabel("Hello, world!");
    return app.exec();

    #include <qthelloworld.cpp.moc>
    Why am i getting this error?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.