This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: f2c and libf2c.a
- To: mendes@mgconecta.com.br
- Subject: Re: f2c and libf2c.a
- From: Mumit Khan <khan@xraylith.wisc.edu>
- Date: Wed, 3 Feb 1999 10:13:57 -0600 (CST)
- cc: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <36B871E8.E86A17D5@mgconecta.com.br>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
On Wed, 3 Feb 1999 mendes@mgconecta.com.br wrote:
> Hi everybody
> I am having a little problem with gcc and make stuff when compiling
> fortran-translated-to-C files (using f2c from netlib). Gcc created
> libf2c.a
> just it did in my Sun workstation but the problem is when I try to
> compile my main fortran-translated-to-C file.
> The system sent me the following msgs:
>
>
> > libf2c.a(iio.o)(.text+0x35): undefined reference to `__errno'
> > libf2c.a(fmt.o)(.text+0x92): undefined reference to `_impure_ptr'
> > libf2c.a(fmt.o)(.text+0xd83): undefined reference to `_impure_ptr'
Without knowing how you build libf2c, it's impossible to tell. Does look
like that f2c is not including errno.h when using errno (instead probably
using ``extern in errno'', which is incorrect). Don't know about the
_impure_ptr problem.
My suggestion would be to simply use g77 if you don't want to figure out
what's wrong with libf2c.
Regards,
Mumit