Results 1 to 4 of 4

Thread: Link errors: undefined reference to `_Unwind_Resume' and '__gxx_personality_v0'

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Link errors: undefined reference to `_Unwind_Resume' and '__gxx_personality_v0'

    I created a default Gui project (mo modifications whatsoever) and, using Creator, confirmed that it compiled and linked. (Dynamic linkage to QT libs).

    I then opened a cmd prompt. Set my environmental variables to the various Qt bin dirs, then ran qmake and mingw. I get an odd linker error.

    I've checked other posts with this problem and in their cases it turned out to me a mingw version problem. In my case I only have the mingw that was installed by QT Creator.

    The error is below.
    Do you have any idea why the cmd line compile fails in my case?

    Qt Code:
    1. C:\test\test>mingw32-make.exe -v
    2. GNU Make 3.81
    3. Copyright (C) 2006 Free Software Foundation, Inc.
    4. This is free software; see the source for copying conditions.
    5. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    6. PARTICULAR PURPOSE.
    7.  
    8. This program built for i386-pc-mingw32
    9.  
    10.  
    11. C:\test\test>gcc -v
    12. Using built-in specs.
    13. Target: i686-w64-mingw32
    14. Configured with: ../gcc44-svn/configure --target=i686-w64-mingw32 --host=i686-w64-mingw32 --disable-multilib --disable-nls --disable-win32-registry --prefix=/mi
    15. ngw32 --with-gmp=/mingw32 --with-mpfr=/mingw32 --enable-languages=c,c++
    16. Thread model: win32
    17. gcc version 4.4.3 (GCC)
    18.  
    19.  
    20. C:\test\test>qmake.exe test.pro -r -spec win32-g++ CONFIG+=release
    21.  
    22.  
    23. C:\test\test>mingw32-make.exe -w
    24. mingw32-make.exe: Entering directory `C:/test/test'
    25. mingw32-make.exe -f Makefile.Release
    26. mingw32-make.exe[1]: Entering directory `C:/test/test'
    27. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\test.exe release/main.
    28. o release/mainwindow.o release/moc_mainwindow.o -L"c:\Qt\2010.04\qt\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
    29. c:\Qt\2010.04\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2): undefined reference to `_Unwind_Resume'
    30. c:\Qt\2010.04\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::realloc(int, int)]+0x187): undefined reference t
    31. o `_Unwind_Resume'
    32. c:\Qt\2010.04\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
    33. collect2: ld returned 1 exit status
    34. mingw32-make.exe[1]: *** [release\test.exe] Error 1
    35. mingw32-make.exe[1]: Leaving directory `C:/test/test'
    36. mingw32-make.exe: *** [release] Error 2
    37. mingw32-make.exe: Leaving directory `C:/test/test'
    To copy to clipboard, switch view to plain text mode 

    My QT related path variables are:

    C:\Qt\2010.04\mingw\bin\
    C:\Qt\2010.04\qt\mkspecs\
    C:\Qt\2010.04\qt\bin\
    Last edited by jonks; 17th August 2010 at 15:01. Reason: updated contents

Similar Threads

  1. Replies: 2
    Last Post: 27th August 2011, 12:59
  2. Replies: 0
    Last Post: 9th April 2009, 06:12
  3. QCreator - undefined reference link errors
    By stodge in forum Newbie
    Replies: 2
    Last Post: 5th April 2009, 14:07
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 12:14
  5. why i am getting errors:: undefined reference to
    By arunchaudhary1983 in forum Newbie
    Replies: 5
    Last Post: 22nd October 2007, 10:33

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.