www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/24/09:09:13

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: <Pine DOT SUN DOT 3 DOT 91 DOT 960620075311 DOT 20276D-100000 AT is>
NNTP-Posting-Host: sneezy.sanders.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019