delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Ian Puleston" <ian AT underpressuredivers DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | |
In-Reply-To: | |
Subject: | RE: stdlib compile error with -ansi and -mno-cygwin |
Date: | Mon, 6 Oct 2008 14:54:18 -0700 |
Message-ID: | <008d01c927fe$17f2e2e0$47d8a8a0$@com> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 12.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
> -----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 MinGW-users AT lists DOT sourceforge DOT net so I'm going to cross-post this to there too. Ian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |