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. Undefined error 'undefined reference to `_imp___ZN12QApplicationC1ERiPPci'"

Undefined error 'undefined reference to `_imp___ZN12QApplicationC1ERiPPci'"

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 4.1k 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.
  • M Offline
    M Offline
    Mathivalavan
    wrote on last edited by
    #1

    I am new to QT, I am currently using QT creator 5.7 and QT 4.0.2 . I tried building the Hello world simple application using QT widgets. below is the code in .pro

    QT += core gui

    QMAKE_CXXFLAGS += -std=c++11

    greaterThan(QT_MAJOR_VERSION,4):QT += widgets

    SOURCES +=
    main.cpp

    All librarly is getting included while compiling, I am not sure why Undefined error is thrown. Please help to understand this issue

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Can you try a default project?

      File -> New Project -> Application -> Qt widget project

      and see if that run.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mathivalavan
        wrote on last edited by
        #3

        Hi

        I tried that, and shows the error "error: [ui_widget.h] Error -1073741515"

        mrjjM 1 Reply Last reply
        0
        • M Mathivalavan

          Hi

          I tried that, and shows the error "error: [ui_widget.h] Error -1073741515"

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Ok
          Something wrong with your install.

          Qt 4.02 is extremely old. :)

          Windows or linux?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mathivalavan
            wrote on last edited by
            #5

            Hi

            I am currently installed QT5.7 for Windows and the compiler I installed is GCC 4.9.1 for QT. I got this from the QT links

            jsulmJ 1 Reply Last reply
            0
            • M Mathivalavan

              Hi

              I am currently installed QT5.7 for Windows and the compiler I installed is GCC 4.9.1 for QT. I got this from the QT links

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Mathivalavan If you have any anti virus software running disable it and try again

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

              1 Reply Last reply
              1
              • M Offline
                M Offline
                Mathivalavan
                wrote on last edited by
                #7

                Hi

                I tried , current Virus scanning is not running. I am getting the same issue

                1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by mrjj
                  #8

                  Hi
                  " currently installed QT5.7 for Windows and the compiler I installed is GCC 4.9.1"

                  Something NOT right. GCC= mingw ?
                  Normally Qt comes with mingw compiler (on windows) and no extra installes needed.
                  This one has all working out of the box
                  https://download.qt.io/archive/qt/5.7/5.7.0/qt-opensource-windows-x86-mingw530-5.7.0.exe

                  1 Reply Last reply
                  3

                  • Login

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