stdlib compile error with -ansi and -mno-cygwin

Ian Puleston
Mon Oct 6 21:55:00 GMT 2008

> -----Original Message-----
> From: me
> Having recently upgraded my Cygwin installation to the latest release,
> a program that was compiling fine in now failing with a compile error
> reported in stdlib.h. After a bit of digging, it turns out that
> stdlib.h does not now compile with -ansi and -mno-cygwin options as it
> used to.
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-
> mingw32/include/stdlib.h:317: error: syntax error before "double"

A bit more info. The file reported above links to /usr/lib/mingw/stdlib.h
which is installed as part of the mingw-runtime package. I dug up a PC on
which I haven't upgraded cygwin for some time, and on it the program
compiles fine with these options that are now failing. That PC has
mingw-runtime 3.14-1, so this problem seems to have come in between the 3.14
and 3.15 releases of mingw-runtime.

Sure enough, the declarations of strtod, strtof, strtol and strtold in
stdlib.h have changed between mingw-runtime 3.14 and 3.14. 

That package says to report bugs to so I'm
going to cross-post this to there too.


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list