QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2104|回复: 1

求助!编译时出现了问题~!!

[复制链接]
发表于 2007-1-31 16:46:29 | 显示全部楼层 |阅读模式
我用交叉编译器编译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


这可怎么解决呀!
发表于 2007-2-2 10:35:43 | 显示全部楼层
程序和MAKEFILE帖出来看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 04:15 , Processed in 0.039221 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表