Mail Archives: djgpp/1996/06/24/09:09:13
In article <Pine DOT SUN DOT 3 DOT 91 DOT 960620075311 DOT 20276D-100000 AT is> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
>Has anyone had any luck in building a valid f2c.exe with the DJGPP v2
>compiler? ...
>====================
><foo>.f:
> MAIN:
>Compiler error line 3 of <foo>.f: do_format: Unknown token type in
>intermediate file
>====================
Take a look in the routine get_p1_token in format.c. Right after
the comment line /* NOT PORTABLE! */ change the line
if(fscanf(infile,"%d",&token) == EOF )
to
if(fscanf(infile,"%d",&token) <= 0 )
This fixed the problem for me.
- Raw text -