Path: utzoo!attcan!uunet!bu.edu!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!sun-barr!newstop!sun!imagen!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st Subject: Re: gcc ????? Message-ID: <2723@atari.UUCP> Date: 29 Oct 90 21:38:46 GMT References: <1990Oct27.163922.3208@zaphod.mps.ohio-state.edu> Organization: Atari Corp., Sunnyvale CA Lines: 18 eao@point.mps.ohio-state.edu (Ed Overman) writes: >fprintf(stdout, "hello, world\n") it aborts when loading with: > hello.o: Undefined symbol _stdout referenced from text You are missing the line #include -- this header file is required when using the standard IO functions and it defines symbols like stdout. Technically, it's even required when you use printf, but your program happens to compile because GCC happens to do the right thing without the printf declaration. This is not an accident: GCC was designed in part to be forgiving to C programmers who don't do things they technically should do. I have used an ANSI compiler which did NOT forgive using printf without including stdio.h! ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt