Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cant get simple hello qt program to compile on android c4droid IDE
Qt 6.12 LTS is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 624 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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!");
    label->show();
    return app.exec();
    }

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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved