www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/27/02:22:15

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1767
Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!dove.nist.gov!enh.nist.gov!lrobins
From: lrobins AT enh DOT nist DOT gov (Lawrence H. Robins)
Newsgroups: comp.os.msdos.djgpp
Subject: problems with F2C libraries
Date: 27 AUG 95 03:19:18 GMT
Organization: NIST
Lines: 41
Nntp-Posting-Host: enh.nist.gov
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hi, I have some questions about the F2C program for converting
Fortran-77 source to C, specifically about the libraries called
LibF77 and LibI77.  Apologies for posting to this group, because
I'm not using DJGPP (at least not yet), rather another C compiler
for MS-DOS, but I thought someone here might be able to help.

Anyway, I obtained the following files
from the NETLIB math software repository:
(1) MS-DOS executable version of F2C itself
(2) Second executable version of F2C, uses extended memory
(3) Header file f2c.h
(4) Two libraries named LibF77 and LibI77
My questions are about the libraries, which according to the
documentation contain support routines for Fortran
intrinsic functions and I/O:

(1) The LibF77 and LibI77 files from NETLIB aren't plain
    source code.  They begin

>   # to unbundle, sh this file (in an empty directory) 

[What's "sh"?]
and continue (for example)

>   //GO.SYSIN DD libF77/c_log.c
>   echo libF77/c_sin.c 1>&2
>   sed >libF77/c_sin.c <<'//GO.SYSIN DD libF77/c_sin.c' 's/^-//'
>   -#include "f2c.h"
>   -#ifdef KR_headers
>   -extern double sin(), cos(), sinh(), cosh();

How can I "unbundle" or otherwise use these files?

(2) Realize you might not know the answer to this, but if the
library files were "unbundled", would I be able to compile
them, and then to compile and run F2C'ed Fortran programs,
using some random C compiler unknown to this group
(e.g. my copy of Borland Turbo C++ 3.0)?

Thanks for any help with my confusion!

- Raw text -


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