Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!uwm.edu!zaphod.mps.ohio-state.edu!news From: eao@point.mps.ohio-state.edu (Ed Overman) Newsgroups: comp.sys.atari.st Subject: gcc ????? Message-ID: <1990Oct27.163922.3208@zaphod.mps.ohio-state.edu> Date: 27 Oct 90 16:39:22 GMT Sender: news@zaphod.mps.ohio-state.edu Organization: Dept of Mathematics, The Ohio State University Lines: 21 Nntp-Posting-Host: point.mps.ohio-state.edu I just pulled gcc over from atari.archive (in particular gccbin and g++-gnulib) and got it up and running on my Mega-2 running gulam. However I must be doing something wrong. The trivial K&R program hello.c (i.e., printf("hello, world\n")) works fine but if I add the line fprintf(stdout, "hello, world\n") it aborts when loading with: hello.o: Undefined symbol _stdout referenced from text Something very funny is going on because printf calls _printf_guts with fputc(c,stdout) being one of its arguments - and this works fine. I tried recompiling fprintf and replacing it in gnu.olb . This leads to another problem because if I do ar rv gnu.olb fprintf.o then it creates the new library gnu.ol$ (presumably to mv to gnu.olb when it is done) and aborts when it closes this file. I then added a printf statement in the file fprintf.c, recompiled it, and added it to gnu.olb using ar rv (so I had to exit gulam to rename gnu.ol$ to gnu.olb). Then when I tried compiling hello.c I had lots of error messages since ld didn't know what to do with _printf . Somehow when I am compiling the include files are not being handled correctly. However the #include command is working because when I comment it out I get a compilation error that stdout is undefined (so I think my GNULIB and GNUINC are correct). Please - what am I doing wrong? Thanks, Ed Overman