What you have to look for on 64 bit
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Mar 19 17:46:00 GMT 2013
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
More information about the Cygwin-developers
mailing list