compiling file 3.26

Corinna Vinschen
Sun Mar 7 08:37:00 GMT 1999

John Zheng wrote:
> Corinna,
> I downloaded file-3.26.tar.gz from, 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.


Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list