delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/07/11:38:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36E29663.7B7D74A8@cityweb.de>
Date: Sun, 07 Mar 1999 16:08:19 +0100
From: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: John Zheng <Yien AT usa DOT net>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: compiling file 3.26
References: <Pine DOT GSU DOT 4 DOT 05 DOT 9903070052510 DOT 15188-100000 AT viking DOT cris DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


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