|
From: Jasper H. <jas...@gm...> - 2010-08-25 02:03:21
|
Greg Chicares wrote: > That option is still valid with the latest gcc: > http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Warning-Options.html#Warning-Options Yeah, wrong page. It's valid for the latest version of gcc indeed, but the mingw 5.1.6 does not provide the latest gcc, it provides some gcc 3 version. I don't feel like installing it to see which one exactly, but it doesn't matter really. Josh Klint wrote: > I am trying to get MinGW to recognize the -Wfatal-errors the codeblocks IDE > uses to make the compiler stop on the first error. However, the latest > version 5.1.6 of MinGW gives this error: > > cc1.exe: error: unrecognized command line option "-Wfatal-errors" As seen here, there is no such an option in gcc 3: http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Warning-Options.html#Warning-Options MinGW-5.1.6 is the latest installer and meant to be the last one ever, yet it is quite old. The intention is being replaced by mingw-get. Unfortunately, mingw-get isn't done yet and as such, only gets you gcc 3 as well. This means the only official way to install gcc 4 is to do a manual install. There are unofficial ways, but they are considered off topic here, so I can only tell you to search for them yourself. Other projects, like TDM and mingw64 do offer recent installers, so they could be an alternative. To the mingw "crew": This is the third time in a very short time I have had to tell this story. It seems to me this message should be (more obviously) on the site. On top of that, I would like to urge you to do the following: provide a method to install a recent version of gcc (other than manual). Perhaps this means that mingw-get should be able to install gcc 4 real soon, perhaps this means that you should adapt some temporary install method as "official" until mingw-get is able to install gcc 4. I am afraid you are shooting yourself in the foot and losing users by not doing so. I don't like to have to mention other mingw projects in order to be able to mention recent mingw installers. Jasper |