程式語言 - Netwide Assembler (NASM) - 解決Undefined reference to _Unwind_Resume問題



問題如下:

ld: /usr/lib/i386-linux-gnu/libc.a(iofclose.o): in function `_IO_new_fclose.cold.0':
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(iofclose.o):(.data.rel.local.DW.ref.__gcc_personality_v0[DW.ref.__gcc_personality_v0]+0x0): undefined reference to `__gcc_personality_v0'
ld: /usr/lib/i386-linux-gnu/libc.a(iofflush.o): in function `_IO_fflush.cold.0':
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(iofputs.o): in function `_IO_fputs.cold.0':
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(iofwrite.o): in function `_IO_fwrite.cold.0':
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(iogetdelim.o): in function `_IO_getdelim.cold.0':
(.text.unlikely+0x37): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(wfileops.o): in function `_IO_wfile_underflow.cold.2':
(.text.unlikely+0x37): undefined reference to `_Unwind_Resume'
ld: /usr/lib/i386-linux-gnu/libc.a(fileops.o):(.text.unlikely+0x3b): more undefined references to `_Unwind_Resume' follow

解法:libgcc_eh.a