Xref: news2.mv.net comp.os.msdos.djgpp:5327 From: jrothwei AT sneezy DOT sanders DOT lockheed DOT com (Joseph Rothweiler) Newsgroups: comp.os.msdos.djgpp Subject: Re: Building f2c w/ djgpp v2 (fwd) Date: 24 Jun 1996 08:20:47 -0400 Organization: Lockheed Sanders, Inc. Lines: 16 Message-ID: <4qm16v$2d7@sneezy.sanders.lockheed.com> References: NNTP-Posting-Host: sneezy.sanders.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article Eli Zaretskii writes: >Has anyone had any luck in building a valid f2c.exe with the DJGPP v2 >compiler? ... >==================== >.f: > MAIN: >Compiler error line 3 of .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.