www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/23/03:14:11

Date: Wed, 23 Aug 1995 09:10:04 +0100
From: Thomas Eifert <EIFERT AT reze-1 DOT rz DOT rwth-aachen DOT de>
Subject: Re: Special libraries to search for f2c?
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Reply-To: eifert AT rz DOT rwth-aachen DOT de
Organization: Rechenzentrum RWTH Aachen

> From:           egley AT albany DOT net (Skip Egley)

>         
> I'm trying to compile fortran code converted to C via f2c.
> I'm getting many undefined references, most (if not all) of which are
> generated by f2c.  I'm including all the libraries (i.e. -lgpp -lgpl -lm
> -lpc) that are mentioned in the FAQ.  I also used nm to search for these in
> all the libraries.

You should add the libraries that are mentioned in f2c's FAQ, too, i.e.
-lF77 -lI77 (and *after* that, -lm ...).

There's a version of f2c where these two libraries are in one - check Your
installation.

> 
> I'm hoping that someone recognizes these and tells me that I should be doing
> such and such.  Some of the undefined references are:
> 
> do_fio
> e_wsfe
> s_wsfe
> i_len
> s_copy

these are from f2c's libraries
> 
> and many more.
> 
> One other thing.  Does djgpp support double complex variables.  I'm also

that's a matter of FORTRAN, not C; f2c does the mapping

> getting an undefined reference to zsqrt and nm doesn't report it being in libm.a
> Do I have to write one myself?

this is in F77, too

> 
> Thanks,
> Skip Egley
> 
> 
Thomas

- Raw text -


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