程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> fltk-undefined reference to `_Unwind_Resume

fltk-undefined reference to `_Unwind_Resume

編輯:編程綜合問答
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講解一下,謝謝!

再次感謝!

最佳回答:


很多函數找不到,mingw沒有對應的lib

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved