From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,549776f8fc51c1c X-Google-Attributes: gidfee84,public From: klaus@axp4.physik.fu-berlin.de (Wolfram Klaus) Subject: Re: GNU GCC 2.8.1 and DEC ld 3.11 Date: 1999/08/03 Message-ID: #1/1 X-Deja-AN: 508298843 Content-Transfer-Encoding: 8bit References: <7o65u2$586$1@jaydee.iway.fr> X-Trace: fu-berlin.de 933672761 13825 (none) 160.45.32.195 Organization: Freie Universitaet Berlin X-Access: 16 17 19 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 "Ga�l Trinquart" writes: >I have rebuilt GCC 2.8.1 binaries on DEC/OSF1 v2.0 and the compiler works >well (it actually produce object file). Unfortunatly, it does not interface >correctly with the DEC standart linker 'ld' (undefined references). Here is >what I've done... Anybody has hints ? >$ cat helloworld.c >#include >int main ( int argc , char* argv [] ) >{ > fprint ( stdout , "Hello World" ) ; > return (0 ) ; >} >$ echo " ";date;uname -a;pwd;echo " ";ls -la;echo " " >Mon Aug 2 11:51:22 GMT+0100 1999 >OSF1 decalpha.elan.fr V2.0 240 alpha >/mnt/sun250/home1/perso/gael/tmp >total 3 >drwxrwxrwx 2 gael st 512 Aug 2 10:49 . >drwxr-xr-x 8 gael st 512 Jul 22 17:51 .. >-rw-rw-r-- 1 gael st 113 Jul 29 15:40 helloworld.c >$ gcc helloworld.c >collect2: ld returned 1 exit status >/usr/bin/ld: >Unresolved: >fprint Sure, there's no such function. Try fprintf() or printf() without the stdout argument. All in all it's just a typo. Bye, Wolfram -- """ (o o) +---------------------------------oOO--(_)--OOo-------------------------------+ | Wolfram Klaus (klaus@physik.fu-berlin.de) FU Berlin, FB Physik |