Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error: identifier "ApplicationFlags" is undefined
Forum Updated to NodeBB v4.3 + New Features

error: identifier "ApplicationFlags" is undefined

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 709 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.
  • P Offline
    P Offline
    puneet336
    wrote on 28 Nov 2016, 10:49 last edited by puneet336
    #1

    Hi all,
    I am trying to compile an application using Qt-4.8.7 environment module on RHEL 6.6 and i am getting following error(But if i use the Qt installed at the default system paths, the compilation is success.) :-

    CXX      gvedit-main.o
    In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                    from main.cpp(22):
    /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(130): error: identifier "ApplicationFlags" is undefined
         QApplication(int &argc, char **argv, int = ApplicationFlags);
                                                    ^
    
    In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                    from main.cpp(22):
    /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(131): error: identifier "ApplicationFlags" is undefined
         QApplication(int &argc, char **argv, bool GUIenabled, int = ApplicationFlags);
                                                                     ^
    
    In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                    from main.cpp(22):
    /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(132): error: identifier "ApplicationFlags" is undefined
         QApplication(int &argc, char **argv, Type, int = ApplicationFlags);
                                                          ^
    
    In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                    from main.cpp(22):
    /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(134): error: identifier "ApplicationFlags" is undefined
         QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = ApplicationFlags);
                                                                                      ^
    
    In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                    from main.cpp(22):
    /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(135): error: identifier "ApplicationFlags" is undefined
    
         QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = ApplicationFlags);
                                                                                                             ^
    compilation aborted for main.cpp (code 2)
    

    Any help/hint would be very useful.
    Eagerly awaiting your replies.

    J 1 Reply Last reply 28 Nov 2016, 12:03
    0
    • P puneet336
      28 Nov 2016, 10:49

      Hi all,
      I am trying to compile an application using Qt-4.8.7 environment module on RHEL 6.6 and i am getting following error(But if i use the Qt installed at the default system paths, the compilation is success.) :-

      CXX      gvedit-main.o
      In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                      from main.cpp(22):
      /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(130): error: identifier "ApplicationFlags" is undefined
           QApplication(int &argc, char **argv, int = ApplicationFlags);
                                                      ^
      
      In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                      from main.cpp(22):
      /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(131): error: identifier "ApplicationFlags" is undefined
           QApplication(int &argc, char **argv, bool GUIenabled, int = ApplicationFlags);
                                                                       ^
      
      In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                      from main.cpp(22):
      /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(132): error: identifier "ApplicationFlags" is undefined
           QApplication(int &argc, char **argv, Type, int = ApplicationFlags);
                                                            ^
      
      In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                      from main.cpp(22):
      /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(134): error: identifier "ApplicationFlags" is undefined
           QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = ApplicationFlags);
                                                                                        ^
      
      In file included from /home/apps/QT/4.8.7/gnu/include/QtGui/QApplication(1),
                      from main.cpp(22):
      /home/apps/QT/4.8.7/gnu/include/QtGui/qapplication.h(135): error: identifier "ApplicationFlags" is undefined
      
           QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = ApplicationFlags);
                                                                                                               ^
      compilation aborted for main.cpp (code 2)
      

      Any help/hint would be very useful.
      Eagerly awaiting your replies.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 28 Nov 2016, 12:03 last edited by jsulm
      #2

      @puneet336 Can you show your main.cpp?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      28 Nov 2016, 10:49

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved