delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/19/10:27:12

Date: 19 Oct 1993 09:54:59 -0400 (EDT)
From: pek AT logos DOT res DOT utc DOT com (Paul Kirschner)
Subject: f2c (9/8/93) and djgpp 1.10
To: djgpp AT sun DOT soe DOT clarkson DOT EDU, pek AT utrcgw DOT utc DOT com

Has anyone compiled the latest version of f2c (dated 9/8/93) ?  I've
overcome three problems but the last one has me stopped.  As for what
I've solved already:

1) in include/sys/signal.h, add "#define SIGABRT 22";

2) in f2c.h, remove "#define abs(x) ..." - it conflicts with std.h
which defines abs as an int;

3) in f2c/libf77/s_paus.c, remove definition of pause as an extern int
- it conflicts with std.h which defines it as a void volatile.

After fixing these, the f2c libraries compile fine, but linking a
simple "hello world" fortran code fails because:

f2c -A test.f
gcc test.c -lf2c
open.c(.text+1d): undefined reference to '_open'
open.c(.text+35): undefined reference to '_close'

It looks like _open and _close are not defined in libc.a by looking at
a table of contents from "ar".

BTW - I have compiled and used this version of f2c on SunOS with gcc
2.4.5, Linux with gcc 2.4.5, and MS-DOS with Turbo C.  The distributed
tpf2c100.zip installs and works fine - but it is a year out of date.

Any recommendations?

------------------------------------------------------------------------------
Paul Kirschner                                       #include <disclaimer.std>
pek AT logos DOT res DOT utc DOT com
United Technologies Research Center

- Raw text -


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