From: Corinna Vinschen <corinna.vinschen@cityweb.de>
To: John Zheng <Yien@usa.net>, cygwin@sourceware.cygnus.com
Subject: Re: compiling file 3.26
Date: Sun, 07 Mar 1999 08:37:00 -0000 [thread overview]
Message-ID: <36E29663.7B7D74A8@cityweb.de> (raw)
In-Reply-To: <Pine.GSU.4.05.9903070052510.15188-100000@viking.cris.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
WARNING: multiple messages have this Message-ID
From: Corinna Vinschen <corinna.vinschen@cityweb.de>
To: John Zheng <Yien@usa.net>, cygwin@sourceware.cygnus.com
Subject: Re: compiling file 3.26
Date: Wed, 31 Mar 1999 19:45:00 -0000 [thread overview]
Message-ID: <36E29663.7B7D74A8@cityweb.de> (raw)
Message-ID: <19990331194500.C6zYevWAShqmXD8gN2BcTVAuKEKcrJ_cRljr4zQ1E70@z> (raw)
In-Reply-To: <Pine.GSU.4.05.9903070052510.15188-100000@viking.cris.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
next parent reply other threads:[~1999-03-07 8:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.GSU.4.05.9903070052510.15188-100000@viking.cris.com>
1999-03-07 8:37 ` Corinna Vinschen [this message]
[not found] ` < 36E29663.7B7D74A8@cityweb.de >
1999-03-07 11:35 ` John Zheng
1999-03-07 11:42 ` Corinna Vinschen
1999-03-07 11:48 ` Corinna Vinschen
[not found] ` < 36E2D7B7.CB124407@cityweb.de >
1999-03-07 13:37 ` John Zheng
1999-03-07 13:45 ` Corinna Vinschen
1999-03-31 19:45 ` Corinna Vinschen
1999-03-31 19:45 ` John Zheng
1999-03-31 19:45 ` Corinna Vinschen
1999-03-31 19:45 ` Corinna Vinschen
1999-03-31 19:45 ` John Zheng
1999-03-31 19:45 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36E29663.7B7D74A8@cityweb.de \
--to=corinna.vinschen@cityweb.de \
--cc=Yien@usa.net \
--cc=cygwin@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).