Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Using OS scope before setting MAKEFILE_GENERATOR
QtWS25 Last Chance

Using OS scope before setting MAKEFILE_GENERATOR

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.7k Views
  • 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.
  • S Offline
    S Offline
    stephane
    wrote on last edited by
    #1

    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,

    Stephane

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      How are you trying to build that project of yours?

      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 Extensions
      • Unsolved