yokeyoke
yokeyoke
采纳率60%
2015-01-06 15:22

undefined reference to `_Unwind_Resume'

已采纳

OS:windows 7
IDE:codeblocks 12.12
c complier:mingw32-gcc.exe
C++ complier:mingw32-g++.exe
错误提示:undefined reference to _Unwind_Resume'|
在IDE中运行FLTK的模板程序“hello world”时出现错误
——————————————————分割线——————————————
如下是所有错误信息:
||=== Build: Debug in fltk_test01 (compiler: GNU GCC Compiler) ===|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowC2EiiiiPKc+0x72)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowC2EiiPKc+0x80)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowD2Ev+0x6e)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window.o):Fl_Window.cxx:(.eh_frame+0x83)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN15Fl_Input_Choice7menu_cbEP9Fl_WidgetPv[__ZN15Fl_Input_Choice7menu_cbEP9Fl_WidgetPv]+0xfe)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN15Fl_Input_Choice6inp_cbEP9Fl_WidgetPv[__ZN15Fl_Input_Choice6inp_cbEP9Fl_WidgetPv]+0x87)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN8Fl_Group6handleEi+0x581)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN8Fl_GroupD2Ev+0x37)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN15Fl_Input_ChoiceC2EiiiiPKc+0x19c)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame+0x157)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN15Fl_Input_Choice7menu_cbEP9Fl_WidgetPv+0x13)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN15Fl_Input_Choice6inp_cbEP9Fl_WidgetPv+0x13)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN10Fl_SpinnerD1Ev+0x13)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN10Fl_SpinnerD0Ev+0x13)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl4copyEPKciiS1_+0x196)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl6optionENS_9Fl_OptionE+0x285)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl6optionENS_9Fl_OptionE+0x2a3)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl.o):Fl.cxx:(.eh_frame+0xb4b)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.text$_ZN2Fl13reload_schemeEv+0x737)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.text.startup._GLOBAL__sub_I__ZN2Fl10backgroundEhhh+0xa7)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.eh_frame+0x157)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window_shape.o):Fl_Window_shape.cxx:(.text$_ZN9Fl_Window13shape_pixmap_EP9Fl_Pixmap+0x64)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Window_shape.o):Fl_Window_shape.cxx:(.eh_frame+0x113)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Widget.o):Fl_Widget.cxx:(.text$_ZN9Fl_Widget11do_callbackEPS_Pv+0x5e)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Widget.o):Fl_Widget.cxx:(.eh_frame+0x30b)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Menu_Button.o):Fl_Menu_Button.cxx:(.text$_ZN14Fl_Menu_Button5popupEv+0xe9)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Menu_Button.o):Fl_Menu_Button.cxx:(.eh_frame+0x7f)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button19simulate_key_actionEv+0x94)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button6handleEi+0x3c5)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button6handleEi+0x3d6)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Button.o):Fl_Button.cxx:(.eh_frame+0x103)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Menu_.o):Fl_Menu_.cxx:(.text$_ZN8Fl_Menu_D2Ev+0x37)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Menu_.o):Fl_Menu_.cxx:(.eh_frame+0x2bb)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Tooltip.o):Fl_Tooltip.cxx:(.text$_ZL15tooltip_timeoutPv+0x10b)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Tooltip.o):Fl_Tooltip.cxx:(.eh_frame+0xdf)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(fl_font.o):fl_font.cxx:(.text$_ZL7fl_fontP18Fl_Graphics_Driveriii+0xf4)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(fl_font.o):fl_font.cxx:(.eh_frame+0xa3)||undefined reference to
__gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Image.o):Fl_Image.cxx:(.text$_ZN12Fl_RGB_ImageD2Ev+0x3c)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Image.o):Fl_Image.cxx:(.text$_ZN12Fl_RGB_ImageC2EPK9Fl_Pixmapj+0x95)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Image.o):Fl_Image.cxx:(.eh_frame+0x1f7)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Double_Window.o):Fl_Double_Window.cxx:(.text$_ZN16Fl_Double_WindowD2Ev+0x37)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Double_Window.o):Fl_Double_Window.cxx:(.eh_frame+0x4b)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN14Fl_PreferencesC2EPKcS1_S1_+0x85)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN14Fl_PreferencesC2ENS_4RootEPKcS2_+0x85)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_ManagerC2EPKc+0x72)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_Manager6pluginEi+0x7f)||undefined reference to _Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_Manager6pluginEPKc+0xa9)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.eh_frame+0x8fb)||undefined reference to __gxx_personality_v0'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Pixmap.o):Fl_Pixmap.cxx:(.text$_ZN9Fl_PixmapD2Ev+0x3e)||undefined reference to
_Unwind_Resume'|
C:\msys\1.0\local\lib\libfltk.a(Fl_Pixmap.o):Fl_Pixmap.cxx:(.text$_ZN9Fl_Pixmap4copyEii+0x416)||undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
————————————分割线——————————————
由于我在网上找了很多相关资料,里面所说的mingw版本问题和makefile命令完全不懂,请最好能step by step讲解一下,谢谢!

再次感谢!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • oyljerry oyljerry 6年前

    很多函数找不到,mingw没有对应的lib

    点赞 评论 复制链接分享
  • oyljerry oyljerry 6年前

    用mingw编译fltk的lib

    点赞 评论 复制链接分享

相关推荐