Path: utzoo!utgpu!watserv1!ria!uwovax!7103_2622 From: 7103_2622@uwovax.uwo.ca (Eric Smith) Newsgroups: comp.sys.atari.st Subject: Re: gcc ????? Message-ID: <7538.272aea2f@uwovax.uwo.ca> Date: 28 Oct 90 18:24:47 GMT References: <1990Oct27.163922.3208@zaphod.mps.ohio-state.edu> Lines: 25 In article <1990Oct27.163922.3208@zaphod.mps.ohio-state.edu>, eao@point.mps.ohio-state.edu (Ed Overman) writes: > 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. Sounds like you've got a library/include file mismatch. There are two "families" of libraries for the gcc: the original library by John Dunning, that came with gcc 1.23, and derivatives (including, I think, the one that comes with g++); and the gcc 1.37 library that Jwahar Bammi and I put together, and derivatives (including one by Edgar Roeder, and the MiNT library). The former has _printf_guts and stdout; the latter has _doprnt and _iob[]. My suspicion is that you're using header files for the first library with a gnu.olb that's set up for the second library. -- Eric R. Smith email: Dept. of Mathematics ersmith@uwovax.uwo.ca University of Western Ontario ersmith@uwovax.bitnet London, Ont. Canada N6A 5B7 ph: (519) 661-3638