delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/15/01:52:15

Date: Thu, 15 Dec 1994 11:25:49 +0900
From: raraki AT human DOT waseda DOT ac DOT jp (Ryuichiro Araki)
To: djgpp AT sun DOT soe DOT clarkson DOT edu, gunter AT statsun DOT stat DOT ColoState DOT EDU,
raraki AT human DOT waseda DOT ac DOT jp
Subject: Re: f2c
Cc: gunter AT yuma DOT ACNS DOT ColoState DOT EDU

>Thanks for your help.  Netlib actually has compiled dos versions of
>f2c.

Well, netlib has two DOS executables in /netlib/f2c/msdos/ (last update: 
14 Nov. 1994).

>-rw-rw-r--   1 ehg      netlib    138625 Nov 14 14:28 f2c.exe.gz
>-rw-rw-r--   1 ehg      netlib    133532 Nov 14 14:28 f2cx.exe.gz

f2c.exe.gz is a compressed DOS version compiled with BCC+ 4.02.  It runs 
under real mode, thereby it should run on any DOS machine but you may 
experience running out of memory if you convert huge Fortran sources.

f2cx.exe.gz is another compressed executable file that was compiled with 
Symantec C/C++.  Since it runs under protected mode of 386 or later CPU 
and uses extended memory, it generally can translate larger Fortran sources.
The drawback is that you may have troubles if you execute it under DPMI.

I recommend you to compile f2c sources with djgpp, and use it. You can
find a complete set of the latest sources in /netlib/f2c/src/. I'll supply
patches to build f2c.exe of djgpp version on request.

>But they don't have the lib files.  It says to link with -lf2c.
>Do I have to download the sources and compile them with djgc to get
>the appropriate lib files?

Maybe the '92 version you'd got off of Simtel is tpf2c100.zip. f2c was
originally designed to build libF77.a and libI77.a separately, and
tpf2c.zip was build according to this design. In this case, you need to 
specify "-lF77 -lI77 -lm" as linking option.  But f2c.exe/f2cx.exe that 
you have downloaded from netlib have been modified a little bit and it
is expected to incorporate libF77.a and libI77.a into a single library
file named libf2c.a.  

Maybe you can use libF77.a and libI77.a included in tpf2c100.zip with-
out modification, but I'm not sure.  You may incorporate them into libf2c.a 
using ar.exe, or try "-lF77 -lI77 -lm" option.  

You can find the following shell-archived and compressed library sources 
for libF77.a and libI77.a. Building them is not so difficult.

>-rw-rw-r--   1 ehg      netlib     25483 Oct 21 17:59 libf77.Z
>-rw-rw-r--   1 ehg      netlib     57903 Nov  2 14:41 libi77.Z

   ---
   raraki(Ryuichiro Araki)


Begin forwarded message:

Date: Wed, 14 Dec 1994 16:17:52 -0700 (MST)
>From gunter AT statsun DOT stat DOT ColoState DOT EDU Thu Dec 15 08:17:27 1994
To: raraki AT human DOT waseda DOT ac DOT jp (Ryuichiro Araki)
Subject: Re: f2c
In-Reply-To: <199412141352 DOT WAA10089 AT wutc DOT human DOT waseda DOT ac DOT jp> from "Ryuichiro Araki" at Dec 14, 94 10:52:52 pm

Thanks for your help.  Netlib actually has compiled dos versions of
f2c.  But they don't have the lib files.  It says to link with -lf2c.
Do I have to download the sources and compile them with djgc to get
the appropriate lib files?  The 92 version I got off of Simtel was
compiled with djgcc and included the appropriate link files.  I'm very
impressed with what I've heard about f2c and am eager to use it.
Thanks for your help
Gunter


- Raw text -


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