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:msys1.0localliblibfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowC2EiiiiPKc+0x72)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowC2EiiPKc+0x80)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Window.o):Fl_Window.cxx:(.text$_ZN9Fl_WindowD2Ev+0x6e)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Window.o):Fl_Window.cxx:(.eh_frame+0x83)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.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:msys1.0localliblibfltk.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:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN8Fl_Group6handleEi+0x581)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN8Fl_GroupD2Ev+0x37)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.text$_ZN15Fl_Input_ChoiceC2EiiiiPKc+0x19c)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame+0x157)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN15Fl_Input_Choice7menu_cbEP9Fl_WidgetPv+0x13)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN15Fl_Input_Choice6inp_cbEP9Fl_WidgetPv+0x13)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN10Fl_SpinnerD1Ev+0x13)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Group.o):Fl_Group.cxx:(.eh_frame$_ZN10Fl_SpinnerD0Ev+0x13)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl4copyEPKciiS1_+0x196)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl6optionENS_9Fl_OptionE+0x285)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl.o):Fl.cxx:(.text$_ZN2Fl6optionENS_9Fl_OptionE+0x2a3)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl.o):Fl.cxx:(.eh_frame+0xb4b)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.text$_ZN2Fl13reload_schemeEv+0x737)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.text.startup._GLOBAL__sub_I__ZN2Fl10backgroundEhhh+0xa7)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_get_system_colors.o):Fl_get_system_colors.cxx:(.eh_frame+0x157)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Window_shape.o):Fl_Window_shape.cxx:(.text$_ZN9Fl_Window13shape_pixmap_EP9Fl_Pixmap+0x64)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Window_shape.o):Fl_Window_shape.cxx:(.eh_frame+0x113)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Widget.o):Fl_Widget.cxx:(.text$_ZN9Fl_Widget11do_callbackEPS_Pv+0x5e)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Widget.o):Fl_Widget.cxx:(.eh_frame+0x30b)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Menu_Button.o):Fl_Menu_Button.cxx:(.text$_ZN14Fl_Menu_Button5popupEv+0xe9)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Menu_Button.o):Fl_Menu_Button.cxx:(.eh_frame+0x7f)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button19simulate_key_actionEv+0x94)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button6handleEi+0x3c5)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Button.o):Fl_Button.cxx:(.text$_ZN9Fl_Button6handleEi+0x3d6)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Button.o):Fl_Button.cxx:(.eh_frame+0x103)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Menu_.o):Fl_Menu_.cxx:(.text$_ZN8Fl_Menu_D2Ev+0x37)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Menu_.o):Fl_Menu_.cxx:(.eh_frame+0x2bb)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Tooltip.o):Fl_Tooltip.cxx:(.text$_ZL15tooltip_timeoutPv+0x10b)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Tooltip.o):Fl_Tooltip.cxx:(.eh_frame+0xdf)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(fl_font.o):fl_font.cxx:(.text$_ZL7fl_fontP18Fl_Graphics_Driveriii+0xf4)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(fl_font.o):fl_font.cxx:(.eh_frame+0xa3)||undefined reference to
__gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Image.o):Fl_Image.cxx:(.text$_ZN12Fl_RGB_ImageD2Ev+0x3c)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Image.o):Fl_Image.cxx:(.text$_ZN12Fl_RGB_ImageC2EPK9Fl_Pixmapj+0x95)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Image.o):Fl_Image.cxx:(.eh_frame+0x1f7)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Double_Window.o):Fl_Double_Window.cxx:(.text$_ZN16Fl_Double_WindowD2Ev+0x37)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Double_Window.o):Fl_Double_Window.cxx:(.eh_frame+0x4b)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN14Fl_PreferencesC2EPKcS1_S1_+0x85)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN14Fl_PreferencesC2ENS_4RootEPKcS2_+0x85)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_ManagerC2EPKc+0x72)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_Manager6pluginEi+0x7f)||undefined reference to _Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.text$_ZN17Fl_Plugin_Manager6pluginEPKc+0xa9)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.a(Fl_Preferences.o):Fl_Preferences.cxx:(.eh_frame+0x8fb)||undefined reference to __gxx_personality_v0'|
C:msys1.0localliblibfltk.a(Fl_Pixmap.o):Fl_Pixmap.cxx:(.text$_ZN9Fl_PixmapD2Ev+0x3e)||undefined reference to
_Unwind_Resume'|
C:msys1.0localliblibfltk.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

解决方案二:
用mingw编译fltk的lib

时间: 2024-11-01 19:20:08

fltk-undefined reference to `_Unwind_Resume'的相关文章

wpa_supplicant编译时出现 undefined reference to `sha256_vector'

问题描述 wpa_supplicant编译时出现 undefined reference to `sha256_vector' CC ../src/drivers/drivers.c CC ../src/l2_packet/l2_packet_linux.c ../src/wps/wps_common.o: In function wps_derive_keys': /home/atheros/Atheros-P2P/wpa_supplicant-2.1/wpa_supplicant/../sr

gcc编译出现了undefined reference to `exp'

问题描述 gcc编译出现了undefined reference to `exp' 在Ubuntu下编译word.cgcc -lm -pthread word.c -o word还是出现了undefined reference to `exp',后来有gcc -pthread word.c -o word /usr/lib/libm.a则提示没有/usr/lib/libm.a这个文件, 有没有有经验的大侠有解决办法? 解决方案 首先确定有libm.so,虽然一般是肯定有的,locate libm

linux 程序开发-/usr/lib/libnssutil3.so: undefined reference to `PL_ClearArenaPool'

问题描述 /usr/lib/libnssutil3.so: undefined reference to `PL_ClearArenaPool' 我在一个64位的linux系统下编译32位的程序,因此很多库文件都是自己安装的.我在编译代码的时候遇到了/usr/lib/libnssutil3.so: undefined reference to `PL_ClearArenaPool'这个报错.用nm查了这个库文件里没有定义这个符号.但是不知道这个问题应该怎么解决.求大神相助

线程异常:undefined reference to 'pthread_create' 处理

源码: #include <stdio.h> #include <pthread.h> #include <sched.h> void *producter_f (void *arg); void *consumer_f (void *arg); int buffer_has_item=0; pthread_mutex_t mutex; int running =1 ; int main (void) {pthread_t consumer_t;pthread_t pr

对象-qt报错undefined reference to `vtable for btnStyle&amp;amp;#39;

问题描述 qt报错undefined reference to `vtable for btnStyle' 头文件中: //错误:undefined reference to `vtable for btnStyle' class btnStyle : public QProxyStyle { Q_OBJECT public: btnStyle(); }: 构造函数如下: //出错地方 一直报错什么问题呢,我只是对qt的例子稍微改了下,但是主体框架都没改 解决方案 问题 在一个类中添加了宏 Q_

gcc-g++ undefined reference to &amp;amp;#39;std::cin&amp;amp;#39;

问题描述 g++ undefined reference to 'std::cin' 用了g++,用了-lstdc++,直接写std::cin 都没有用 解决方案 试下初始化a,int a=0:不确定是否可行 解决方案二: 楼主不会是编译器或者stdc++库出了问题吧,建议楼主检查下 解决方案三: 此版本的Linux 系统为添加c++库,建议先下载库 解决方案四: 回复John_ToDebug: 我百度了,只找到了libstdc++.so,需要手动拷贝到lib,但是我在拷贝的时候说No such

linux 编译-大家好,加了-ldl还是出现`dlopen&amp;amp;#39; ‘dlsym’ undefined reference

问题描述 大家好,加了-ldl还是出现`dlopen' 'dlsym' undefined reference 32位centos6.5上交叉编译opencv,加了-ldl还是出现dlopen' 'dlsym' undefined reference 已经网上找了-ldl方法,还是不行 安装了跟glibc有关的一切东西,还是不行 困扰好久了,请大侠帮忙,不胜感激 详细错误信息如下: ../../lib/libopencv_ocl.so: undefined reference todlopen'

android libmp3lame-libmp3lame编译出现:undefined reference to &amp;amp;#39;hip_decode&amp;amp;#39;

问题描述 libmp3lame编译出现:undefined reference to 'hip_decode' 这是出问题的地方,这三个方法在mpglib_interface.c文件中 下面是Android.mk文件 下面是报错信息 这个错误怎么解决? 解决方案 解决了,妈蛋!需要在Android.mk文件中添加 LOCAL_ALLOW_UNDEFINED_SYMBOLS := true 这句话 解决方案二: 问题解决之: 使用NDK编译的时候出现 undefined reference to使

caffe: compile error : undefined reference to `cv::imread(cv::String const&amp;, int)&amp;#39; et al.

when I compile caffe file : .build_debug/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'.build_debug/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<u