我正在使用c intrinsics处理ARM霓虹灯代码。当我编译文件时,我不断收到以下错误:
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / bin / ld.exe:警告:找不到输入符号 _开始;默认为00008020
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-exit.o):在功能'退出': exit.c :(。text + 0x28):未定义引用' _exit'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-fstatr.o):在函数' _fst at_r&#39 ;: fstatr.c :(。text + 0x1c):未定义引用' _fstat'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-openr.o):在函数' _open _r':openr.c :(。text + 0x20):未定义引用' _open'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-sbrkr.o):在函数' _sbrk _r&#39 ;: sbrkr.c :(。text + 0x18):未定义引用' _sbrk'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-writer.o):在函数' _wri te_r':writer.c :(。text + 0x20):未定义引用' _write'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-closer.o):在函数' _clo se_r&#39 ;: closer.c :(。text + 0x18):未定义引用' _close'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-isattyr.o):在函数' _is atty_r':isattyr.c :(。text + 0x18):未定义引用' _isatty'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-lseekr.o):在函数' _lse ek_r':lseekr.c :(。text + 0x20):未定义引用' _lseek'
c:/ program files(x86)/ codesourcery / sourcery g ++ lite / bin /../ lib / gcc / arm-none-ea bi / 4.3.3 /../../../../ arm-none-eabi / lib \ libc.a(lib_a-readr.o):在函数' _read中 _r':readr.c :(。text + 0x20):未定义引用' _read'
collect2:ld返回1退出状态
谁能告诉我如何纠正这些错误?我所知道的是,我必须明确定义函数isatty()
,fstat
等。但我不知道在哪里定义它们