This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: undefined reference to `__trunctfdf2'
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Alex Gonzalez'" <langabe at gmail dot com>, <newlib at sourceware dot org>
- Date: Mon, 30 Jan 2006 16:12:09 -0000
- Subject: RE: undefined reference to `__trunctfdf2'
On 30 January 2006 16:06, Alex Gonzalez wrote:
> Hi,
>
> Could anybody offer some advise to get rid of this linking error? What am
> I missing?
libgcc, from the looks of it. Normally the compiler driver would implicitly add '-lc -lgcc -lc' at the end of your linker
commandline, but you told it not to when you gave the -nostdlib option.
> /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/bin/mips64-linux-gnu-gcc
> obj/start.o obj/pvmain.o -Llib -EB -N -G0 -nostdlib -static
> -Wl,-Ttext=0x81000000 -Wl,-Map,pv1000_p1.map -lpvos -lpveth
> -L../../pub/lib -L../../libc/trunk/mips64-elf/lib -lc
> -L../../libc/trunk/build/mips64-elf/lib/ -lnosys -Wl,-t -o
> pv1000_p1.elf ../../libc/trunk/mips64-elf/lib/libc.a(closer.o): In
> function `_close_r':
>
/tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/stdio/../../../../../src/newlib/libc/stdio/vfp
rintf.c:815:
> undefined reference to `__trunctfdf2'
cheers,
DaveK
--
Can't think of a witty .sigline today....