This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: What you have to look for on 64 bit
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Tue, 19 Mar 2013 18:46:31 +0100
- Subject: Re: What you have to look for on 64 bit
- References: <20130319104806 dot GM3003 at calimero dot vinschen dot de> <51489C7B dot 4060909 at cornell dot edu>
- Reply-to: cygwin-developers at cygwin dot com
On Mar 19 13:12, Ken Brown wrote:
> On 3/19/2013 6:48 AM, Corinna Vinschen wrote:
> ><annoying lecturing>
> >
> >Bottom line is, when building packages for 64 bit, make sure to
> >switch on warnings for missing prototypes and if you get these
> >warnings, make sure to include the right headers to get the prototype.
> >Otherwise, SEGV ensues.
> >
> ></annoying lecturing>
>
> I tried your printf example, and as you said, it compiled but
> crashed. But gcc didn't report the missing prototype, even though I
> compiled with `gcc -Wmissing-prototypes'. Did I do something wrong?
> Here's the source file:
>
> #include <stdio.h>
> #include <errno.h>
> int
> main ()
> {
> printf ("%s\n", strerror (EINVAL));
> }
Sorry, I didn't notice that. Try -Wimplicit-function-declaration
instead.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat