問題如下:
ld: /usr/lib/i386-linux-gnu/libc.a(printf_fp.o): in function `__printf_fp_l': (.text+0x4d2): undefined reference to `__unordtf2' ld: (.text+0x536): undefined reference to `__unordtf2' ld: (.text+0x581): undefined reference to `__letf2' ld: /usr/lib/i386-linux-gnu/libc.a(printf_fphex.o): in function `__printf_fphex': (.text+0xf6): undefined reference to `__unordtf2' ld: (.text+0x156): undefined reference to `__unordtf2' ld: (.text+0x1a8): undefined reference to `__letf2' ld: /usr/lib/i386-linux-gnu/libc.a(dl-misc.o): in function `_dl_strtoul': (.text+0x7b0): undefined reference to `__udivdi3'
解法:libgcc.a