Still around: Compile error in CVS HEAD from 1999-04-10 20:30 CEST

Florian Laws florian at void.s.bawue.de
Sun Apr 11 14:05:05 GMT 1999


On Sun, Apr 11, 1999 at 10:30:08AM +1000, Tim Potter wrote:
> Florian Laws writes:
> 
> > FILE *infile  = stdin;
> > FILE *outfile = stdout;
> > 
> > which is odd, at least I don't see why the compiler complains about that.
> 
> I've moved the initialisation of infile and outfile to main().
> 

Thanks, that solved the problem.

> Out of interest, could you find out what your particular version of
> egcs thinks stdin and stdout is?  Look in stdio.h or just grep for
> stdin in /usr/include/*.h.  Under Solaris 2.6 it is:
> 
> /usr/include/stdio.h:#define    stdin   (&_iob[0])
> 

Just like Paul wrote, in glibc2.1.1 it's 
extern FILE *stdin;             /* Standard input stream.  */
extern FILE *stdout;            /* Standard output stream.  */
extern FILE *stderr;            /* Standard error output stream.  */
too.

On to the next error 
(see other posting)

Florian


More information about the samba-technical mailing list