Using OS scope before setting MAKEFILE_GENERATOR

  • Hello,

    I have downloaded and installed Qt as I'm learning how to use it. So, I created a new project myfristqt (empty project). I then added a main.cpp file with this code:

    #include <QApplication>

    int main(int argc, char *argv[])
    QApplication app(argc, argv);
    return app.exec();

    First thing I noticed #include <QApplication> line is hightlighted with a red line as if QApplication was an unknown identifier. So, I compiled it to see what happens and here's the error I got:

    (internal):1: error : Using OS scope before setting MAKEFILE_GENERATOR

    Any idea why this is happening ? I'm using Windows XP

    hx for helping,


  • Moderators

    How are you trying to build that project of yours?

Log in to reply

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