From: SourceForge.net <no...@so...> - 2009-04-28 13:47:45
|
Bugs item #2780569, was opened at 2009-04-24 11:49 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2780569&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: MinGW Installer >Group: Invalid mingw.ini >Status: Open >Resolution: None >Priority: 9 Private: No Submitted By: Peter Ross (petdr) >Assigned to: Earnie Boyd (earnie) Summary: stdlib.h incorrect when gcc uses -ansi switch Initial Comment: The following very simple program fails to compile with the -ansi switch test.c: ----------------------------------------- #include <stdlib.h> ----------------------------------------- # gcc -ansi test.c In file included from test.c:1: c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:317: error: s yntax error before "double" I'm using gcc 3.4.5 on a msys shell. # gcc -v Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl e-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) # uname -a MINGW32_NT-5.0 WIN2K 1.0.11(0.46/3/2) 2009-01-29 00:39 i686 Msys ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2009-04-28 09:47 Message: So the problem is the site update for a newer mingw.ini. Of course the developer uploading the files must also update the mingw.ini file. I'll make sure a process is in place to update the mingw.ini file today. ---------------------------------------------------------------------- Comment By: Peter Ross (petdr) Date: 2009-04-28 08:05 Message: Sorry for the duplicate bug report. I actually assumed I was at the latest mingw runtime. As I had only earlier that day installed mingw using the automatic installer, so I assumed incorrectly that it would get the latest version of the runtime, hence the bug report. ---------------------------------------------------------------------- Comment By: Keith Marshall (keithmarshall) Date: 2009-04-28 04:05 Message: As Earnie says, you should update mingwrt. This is *at least* the third duplicate report of this bug; it was fixed *six months* ago! As of mingwrt-3.15.2, this bug is no longer an issue. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2009-04-27 08:31 Message: And since the Cygwin MinGW runtime and the MinGW runtime are one in the same you might try updating your mingwrt version. ---------------------------------------------------------------------- Comment By: Peter Ross (petdr) Date: 2009-04-27 00:15 Message: If you change the inline keyword to __inline on line 317 then this file compiles. This is how stdlib.h is defined in the cygwin mingw package. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2780569&group_id=2435 |