Message-Id: <199603302010.PAA03030@delorie.com> Date: Sat, 30 Mar 1996 12:18:58 -0800 From: Toru Suzuki To: orly AT psylocke DOT eee DOT upd DOT edu DOT ph Cc: vesa DOT riikonen AT vtt DOT fi, djgpp AT delorie DOT com In-Reply-To: (orly@psylocke.eee.upd.edu.ph) Subject: Re: Installing DJGPP on network >>>>> On Sat, 30 Mar 1996 13:21:01 +0800 (GMT+0800), "Orlando A. Andico" said: Orlando> On 27 Mar 1996, Vesa Riikonen wrote: >> >> Has anybody succeed to recompile the f2c V1.x using DJGPP V2? >> Orlando> Yes, but it don't work. Orlando> The f2c spews out errors on a simple fortran program. But the libf2c.a Orlando> file does build correctly, I got to compile the Berkeley SPICE 2G6 Orlando> program with it. I generated F2C.EXE from sources of version 19660301 using V2. It looks like working succecfuly, at least my simple programs. You need to change about fscanf() in format.c, i.e. from: if (fscanf (infile, "%d", &token) == EOF) to: if (fscanf (infile, "%d", &token) == NULL) Because return value of fscanf() of V2 is different from UNIX. You can get the latest f2c sources from ftp://netlib.att.com/netlib/f2c/ and package of binary and library from ftp://shiho.tokyo-u-fish.ac.jp/pub/f2c/19960301/msdos/f2c.zip Please try it. Toru Toru Suzuki School of Earth and Ocean Sciences University of Victoria mailto:toru AT maelstrom DOT seos DOT uvic DOT ca http://maelstrom.seos.uvic.ca/people/toru/toru.html