PDA

View Full Version : undefined reference for qt creator in windows



morteza
13th October 2011, 17:22
i write new qt program in qt creator in windows7
but i get this error
Running build steps for project First...
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `C:/Qt/2010.05/qt/First-build-desktop'

C:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Debug all

mingw32-make[1]: Entering directory `C:/Qt/2010.05/qt/First-build-desktop'

g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\First.exe tmp/obj/debug_shared/main.o -L"c:\Qt\2010.05\qt\lib" -L"c:\Program Files\SQLXML 4.0\bin\" -L"c:\Qt\2010.05\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4

mingw32-make[1]: Leaving directory `C:/Qt/2010.05/qt/First-build-desktop'

mingw32-make: Leaving directory `C:/Qt/2010.05/qt/First-build-desktop'

tmp/obj/debug_shared/main.o: In function `main':

C:\Qt\2010.05\qt\First-build-desktop/../First/main.cpp:5: undefined reference to `_imp___ZN16QCoreApplicationC1ERiPPc'

C:\Qt\2010.05\qt\First-build-desktop/../First/main.cpp:7: undefined reference to `_imp___ZN16QCoreApplication4execEv'

C:\Qt\2010.05\qt\First-build-desktop/../First/main.cpp:7: undefined reference to `_imp___ZN16QCoreApplicationD1Ev'

C:\Qt\2010.05\qt\First-build-desktop/../First/main.cpp:7: undefined reference to `_imp___ZN16QCoreApplicationD1Ev'

collect2: ld returned 1 exit status

mingw32-make[1]: *** [debug\First.exe] Error 1

mingw32-make: *** [debug-all] Error 2

The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project First (target: Desktop)
When executing build step 'Make'

please help me!!!
i am new in qt

llev
13th October 2011, 19:19
Where did you get qt libs from?