delorie.com/archives/browse.cgi | search |
Delivered-To: | listarch-cygwin AT sourceware DOT cygnus DOT com |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
X-Authentication-Warning: | modi.xraylith.wisc.edu: khan owned process doing -bs |
Date: | Wed, 3 Feb 1999 10:13:57 -0600 (CST) |
From: | Mumit Khan <khan AT xraylith DOT wisc DOT edu> |
To: | mendes AT mgconecta DOT com DOT br |
cc: | "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com> |
Subject: | Re: f2c and libf2c.a |
In-Reply-To: | <36B871E8.E86A17D5@mgconecta.com.br> |
Message-ID: | <Pine.SUN.3.93.990203101135.28276B-100000@modi.xraylith.wisc.edu> |
MIME-Version: | 1.0 |
On Wed, 3 Feb 1999 mendes AT mgconecta DOT com DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |