Results 1 to 2 of 2

Thread: Error when including QtGui ( undefined reference to `_Unwind_Resume)

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Error when including QtGui ( undefined reference to `_Unwind_Resume)

    Hi all

    I`m using Qt (4.7.1) and Eclipse integration. I`m writing a Qtcore project and It`s working fine. But whenever I include QtGui by writing : #include <QtGui> and compiling , I get the following error:

    Qt Code:
    1. C:\\iwmake\\build_mingw_opensource\\src\\winmain/qtmain_win.cpp:93: undefined reference to `_Unwind_Resume'
    2. mingw32-make[1]: Leaving directory `Z:/workspace/Bismellah'
    3. C:\\iwmake\\build_mingw_opensource\\src\\winmain/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
    4. c:\Users\alhussab\Downloads\devtools\QT\lib/libqtmaind.a(qtmain_win.o):C:\\iwmake\\build_mingw_opensource\\src\\winmain/../../include/QtCore/../../src/corelib/tools/qvector.h:484: undefined reference to `_Unwind_Resume'
    5. c:\Users\alhussab\Downloads\devtools\QT\lib/libqtmaind.a(qtmain_win.o):C:\\iwmake\\build_mingw_opensource\\src\\winmain/../../include/QtCore/../../src/corelib/tools/qvector.h:485: undefined reference to `_Unwind_Resume'
    6. c:\Users\alhussab\Downloads\devtools\QT\lib/libqtmaind.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
    7. collect2: ld returned 1 exit status
    8. mingw32-make[1]: *** [debug\Bismellah.exe] Error 1
    9. mingw32-make: *** [debug] Error 2
    To copy to clipboard, switch view to plain text mode 


    Without including QtGui, it just works fine. I tried totally a new Qt example that includes both QtCore and QtGui, and I get the same error. I made sure that QtGui exists in the Include path.

    For your information, I use MinGW 4.4

    Could you please help me with this error ?

    Thanks a lot in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Error when including QtGui ( undefined reference to `_Unwind_Resume)

    You have configured your project as a core application (non gui)
    So your project is not linking against QtGui.dll.
    You have to change the QT field in your pro file to include 'gui'.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 1
    Last Post: 5th February 2011, 21:14
  2. Replies: 13
    Last Post: 4th November 2010, 22:34
  3. QtBrowserPlugin without QtGui.dll?
    By anupamgee in forum Qt Programming
    Replies: 1
    Last Post: 13th August 2010, 14:52
  4. compilation error when including dumpcpp output
    By Jimmy2775 in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2010, 04:12
  5. using QtGui
    By nupul in forum Qt Programming
    Replies: 5
    Last Post: 7th April 2006, 12:36

Tags for this Thread

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.