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: compiling file 3.26
- To: John Zheng <Yien@usa.net>, cygwin@sourceware.cygnus.com
- Subject: Re: compiling file 3.26
- From: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Date: Sun, 07 Mar 1999 16:08:19 +0100
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- References: <Pine.GSU.4.05.9903070052510.15188-100000@viking.cris.com>
- Sender: cygwin-owner@sourceware.cygnus.com
John Zheng wrote:
>
> Corinna,
>
> I downloaded file-3.26.tar.gz from ftp.astron.com, and tried to compile it.
>
> Near the end of compilation, I get the error:
> [...]
> /a/cygnus/file-3.26/file.c:202: undefined reference to `errno'
> [...]
> Do you know what the problem is? errno appears to be defined as:
>
> extern int errno; /* Some unixes don't define this.. */
The `extern' declaration of errno must be substituted with
#include <errno.h>
Cygwin defines errno not as a global variable, but as a
#define to a function call. This is needed, because it
wouldn't be reentrant else.
Regards,
Corinna
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com