Undefined error 'undefined reference to `_imp___ZN12QApplicationC1ERiPPci'"
-
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.cppAll librarly is getting included while compiling, I am not sure why Undefined error is thrown. Please help to understand this issue
-
Hi
Can you try a default project?File -> New Project -> Application -> Qt widget project
and see if that run.
-
Hi
I tried that, and shows the error "error: [ui_widget.h] Error -1073741515"
-
Ok
Something wrong with your install.Qt 4.02 is extremely old. :)
Windows or linux?
-
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
-
@Mathivalavan If you have any anti virus software running disable it and try again
-
Hi
I tried , current Virus scanning is not running. I am getting the same issue
-
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