This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Getting Started, 'errno' problem
- To: "Stephen E. Schweibinz" <plan at mit dot edu>
- Subject: Re: Getting Started, 'errno' problem
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Fri, 23 Oct 1998 17:12:46 -0500 (CDT)
- Cc: gnu-win32 at cygnus dot com
On Thu, 22 Oct 1998, Stephen E. Schweibinz wrote:
> I am trying to port some C code from Unix to NT. I have
> just installed Cygwin32 Beta19 (cdk.exe). I then installed
> the b19.1-update (new-cygwin19_dll.gz). Lastly, I replaced
> the Cygwin32 compiler with the egcs-1.1 compiler
> (egcs-1.1-cygb19.tar.gz).
So far so good.
>
> After each step, I have tried compiling but I continue
> to get the same problems. 1) Failure to recognize where
> gcc.exe is located (gcc: permission denied) and 2)
> undefined reference to 'errno'
(1) depends on PATH setting obviously, which is ok from your PATH
listing (deleted). Are you using bash? If so, what does `type gcc'
produce? Can you run the following:
$ gcc -v
and if yes, what does it say?
(2) is because of non-ANSI behaviour in lots of old code where instead
of include errno.h, the code declares an "extern int errno" which is
wrong.
> When I try to run 'make', I keep getting an undefined reference
> to 'errno'.
Why can't you just look in the code to see what might be causing this?
Blindly running make and expecting everything to come out ok is probably
asking a bit too much.
I'm attaching my local changes to pbmplus ... comes w/out any warranty
whatsoever (TRANSLATION: free to take what you need, but please don't
ask me questions about it).
Regards,
Mumit
pbmplus patch for win32