[uClibc]Where is stdin/out? :-)

Robert Schwebel robert at schwebel.de
Thu Feb 1 16:47:55 UTC 2001


Hi! 

Playing around with uC-libc for the first time I run into some problems:

----------8<----------8<----------8<----------8<----------8<----------
robert at callisto:~/tmp/DIL ! ../uClibc/extra/gcc-uClibc/gcc-uClibc-i386 -c
test.c -o test.o
robert at callisto:~/tmp/DIL ! ../uClibc/extra/gcc-uClibc/gcc-uClibc-i386
-L../uClibc -v test.o -o test
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/lib/gcc-lib/i486-suse-linux/2.95.2/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o test -L../uClibc
-L/usr/lib/gcc-lib/i486-suse-linux/2.95.2 -L/usr/i486-suse-linux/lib
test.o /home/robert/tmp/uClibc/crt0.o --dynamic-linker /lib/ld-linux.so.1
-luClibc /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libgcc.a
../uClibc/libuClibc.so: undefined reference to `stdin'
../uClibc/libuClibc.so: undefined reference to `stderr'
collect2: ld returned 1 exit status
robert at callisto:~/tmp/DIL ! cat test.c

int main(void) {

  printf("Hello World\n");

}
robert at callisto:~/tmp/DIL ! 
----------8<----------8<----------8<----------8<----------8<----------

Where did stdin and stdout go? Compiling the source with the 'normal'
gcc-2.95.2 works just fine.

Cheers,
Robert
-- 
 +----------------------------------------------------------------------+
 I Dipl.-Ing. Robert Schwebel, Luedemannstrasse 25, 24114 Kiel, Germany I
 I Phone +49-431-6794138 Fax +49-431-6794139 email: robert at schwebel.de  I
 +----------------------------------------------------------------------+






More information about the uClibc mailing list