Results 1 to 2 of 2

Thread: undefined reference for qt creator in windows

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Qt products
    Qt3
    Platforms
    MacOS X

    Default undefined reference for qt creator in windows

    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

  2. #2
    Join Date
    Aug 2011
    Posts
    44
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: undefined reference for qt creator in windows

    Where did you get qt libs from?

Similar Threads

  1. Replies: 2
    Last Post: 27th August 2011, 13:59
  2. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 14:45
  3. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 09:34
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 13:14
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 11:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.