Date: Mon, 25 Oct 93 09:30:39 EDT From: lupoja AT feynman DOT ml DOT wpafb DOT af DOT mil (Jim Lupo) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Compiling F2C Cc: pek AT logos DOT res DOT utc DOT com On 19 Oct 93, Paul Kirschner wrote about a problem compiling and running f2c, Version 9/8/93. I recently pulled a version from NETLIB and ran into the same problems. The version I now have is: f2c ......... Version 22 Jul 92 libF77 ...... Version 2.01, 12 Mar 93 libI77 ...... Version 2.06, 6 Apr 93 This is not exactly the same version, but the problems I ran into were identical and the libI77 version may be close enough for my fix to work. I eliminated the "undefined references to _open and _close" with the following fix: In libI77/rawio.h, insert before line 1: #ifdef __GO32__ #undef MSDOS #endif Then down around line 46 you'll find the lines: extern int close(int) extern int read(...), write(...); (... means use what's there!) Change those to read: extern int close(int) #ifndef __GO32__ extern int read(...), write(...); (... means use what's there!) #endif The tests I've run so far seem to work (meaning some horrible oversight is lurking about waiting for me to try something REAL . . . ). Jim P.S. I'd be interested in learning the location of the most recent version of f2c, if there is one. ------------------- Optional Methods ----------------------- ATTN: Dr James A. Lupo COMM: (513) 255-6671, Ext 3160 WL/MPLJ Bldg 651 DSN: 785-6671, Ext 3160 3005 P St Ste 1 FAX: 5-1128 Wright-Patterson AFB OH 45433-7702 lupoja AT feynman DOT ml DOT wpafb DOT af DOT mil (134.131.35.31)