自己编译安装的gcc,编译程序出错
发表于 : 2012-12-19 23:33
源程序只是个很简单的输出,但是gcc却出错,出错提示如下:
ansyral@ansyral-OptiPlex-390:~$ g++ -o hi hi.cpp
/usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a(eh_personality.o): In function `__gxx_personality_v0':
(.text.__gxx_personality_v0+0xb8): undefined reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
我觉得应该是gcc的问题,因为开发需要自己编译源吗装了个gcc4.1,然后不知为什么出现这个问题。请教,感激不尽。
ansyral@ansyral-OptiPlex-390:~$ g++ -o hi hi.cpp
/usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a(eh_personality.o): In function `__gxx_personality_v0':
(.text.__gxx_personality_v0+0xb8): undefined reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
我觉得应该是gcc的问题,因为开发需要自己编译源吗装了个gcc4.1,然后不知为什么出现这个问题。请教,感激不尽。