我用交叉编译器编译HelloWorld时出现错误,如下:
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(exit.o): In function `exit':
(.text+0x2: undefined reference to `_exit'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(sbrkr.o): In function `_sbrk_r':
(.text+0x1c): undefined reference to `_sbrk'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(makebuf.o): In function `__smakebuf':
(.text+0xe: undefined reference to `isatty'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(writer.o): In function `_write_r':
(.text+0x24): undefined reference to `_write'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(closer.o): In function `_close_r':
(.text+0x1c): undefined reference to `_close'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(fstatr.o): In function `_fstat_r':
(.text+0x20): undefined reference to `_fstat'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(lseekr.o): In function `_lseek_r':
(.text+0x24): undefined reference to `_lseek'
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/lib/libc.a(readr.o): In function `_read_r':
(.text+0x24): undefined reference to `_read'
collect2: ld returned 1 exit status