From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corinna Vinschen To: John Zheng , cygwin@sourceware.cygnus.com Subject: Re: compiling file 3.26 Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <36E29663.7B7D74A8@cityweb.de> References: X-SW-Source: 1999-03n/msg00167.html Message-ID: <19990331194500.C6zYevWAShqmXD8gN2BcTVAuKEKcrJ_cRljr4zQ1E70@z> 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 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