delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/01/00:12:54

Subject: Re: F2C problems with DJGPP
To: A8411GAC AT helios DOT edvz DOT univie DOT ac DOT at
Date: Wed, 30 Nov 1994 19:13:03 +0100 (MET)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (user alias)
From: Christoph Kukulies <kuku AT acds DOT physik DOT rwth-aachen DOT de>
Reply-To: Christoph Kukulies <kuku AT acds DOT physik DOT rwth-aachen DOT de>

> 
> Hi,
> 
> maybe that's not the right place for such a question, but I recently built
> the F2C FORTRAN to C converter using DJGPP 1.12m2. After fiddling around
> a little bit I got it to compile without errors ( it's the F2C dated some-
> where around 28.04.1993 ), but when I tried to compile a small FORTRAN
> source, GCC complained about nonresolved references to '_open' and
> '_close', although a 'ar tv libi77.a' shows, that they are existing.
> 
> Has anybody a idea what's going on here ?

What do you mean "they are existing" ? There is no function
named open (_open) in libI77.a. There are external references to the
C runtime-library functions _open and _close in libI77.a.

Your link line should look like this:

gcc file.o -lF77 -lI77 -lm -lc

I'm hoping your source code doesn not contain CALL OPEN, CALL CLOSE
from RT-11 Fortran 4 :-)

> 
> I tried various ways of translating, compiling, linking in different
> orders, but without success.
> 
> Many thanks in advance ...
>                               ...Matthias
> ---------------------------------------------------------------------
>   Matthias Burian                  Institut fuer Analytische Chemie
>                                                   Universitaet Wien
>   a8411gac AT helios DOT edvz DOT univie DOT ac DOT at            Waehringerstrasse 38
>   a8411gac AT awiuni11 DOT edvz DOT univie DOT ac DOT at          1090 Wien    AUSTRIA
> ---------------------------------------------------------------------
> 

--Chris  Christoph P. U. Kukulies    kuku AT acds DOT physik DOT rwth-aachen DOT de	 
FreeBSD 2.0.1-Development #0: Wed Nov  2 23:00:17  1994
    root AT mvx1b1:/usr/src/sys/compile/JAZZ

- Raw text -


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