these functions need implement even I not use them?

chingfu zongyue.chen@gmail.com
Thu Jun 15 06:59:00 GMT 2006


Hi all,
   I compiled a program but got these error at link as below :

/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(exit.o):
In function `exit':
/cross/src/gcc/newlib/libc/stdlib/exit.c:65: undefined reference to `_exit'
/cross/src/gcc/newlib/libc/stdlib/exit.c:65: relocation truncated to fit:
R_MIPS_26 against `_exit'
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(makebuf.o):
In function `__smakebuf':
/cross/src/gcc/newlib/libc/stdio/makebuf.c:96: undefined reference to
`isatty'
/cross/src/gcc/newlib/libc/stdio/makebuf.c:96: relocation truncated to fit:
R_MIPS_26 against `isatty'
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(sbrkr.o):
In function `_sbrk_r':
/cross/src/gcc/newlib/libc/reent/sbrkr.c:60: undefined reference to `sbrk'
/cross/src/gcc/newlib/libc/reent/sbrkr.c:60: relocation truncated to fit:
R_MIPS_26 against `sbrk'
/cross/src/gcc/newlib/libc/reent/sbrkr.c:60: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/cross/src/gcc/newlib/libc/reent/sbrkr.c:60: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(writer.o):
In function `_write_r':
/cross/src/gcc/newlib/libc/reent/writer.c:58: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/cross/src/gcc/newlib/libc/reent/writer.c:58: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(closer.o):
In function `_close_r':
/cross/src/gcc/newlib/libc/reent/closer.c:53: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/cross/src/gcc/newlib/libc/reent/closer.c:53: relocation truncated to fit:
R_MIPS_GPREL16 against `errno'
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(fstatr.o):
In function `_fstat_r':
/cross/src/gcc/newlib/libc/reent/fstatr.c:62: undefined reference to `fstat'
/cross/src/gcc/newlib/libc/reent/fstatr.c:62: relocation truncated to fit:
R_MIPS_26 against `fstat'
/cross/src/gcc/newlib/libc/reent/fstatr.c:62: additional relocation
overflows omitted from the output
/opt/crosstools/mips/lib/gcc/mips-elf/4.1.0/../../../../mips-elf/lib/soft-float/libc.a(lseekr.o):
In function `_lseek_r':
/cross/src/gcc/newlib/libc/reent/lseekr.c:58: undefined reference to `lseek'
collect2: ld returned 1 exit status
make: *** [ras.exe] Error 1

   I not implement these functions because I not use them in my code. Do I
implement these functions ?

--
View this message in context: http://www.nabble.com/these-functions-need-implement-even-I-not-use-them--t1790542.html#a4878185
Sent from the gcc - cross compiler forum at Nabble.com.


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list