Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't the gcc 4.x.x series compilers installed by MinGW by default?

Currently, MinGW's only installs the 3.x.x series of the gcc compiler by default. However, it looks like the 4.x.x series of compilers have been out for some time, and as others have mentioned, it seems to work just fine. Is there any reason why it hasn't moved to the 4.x.x versions yet, and any reason why I shouldn't use the newer versions of gcc?

like image 224
Robert P Avatar asked Dec 18 '25 00:12

Robert P


2 Answers

The TDM GCC/MinGW32 builds installer includes gcc 4.4.x and all the core binary packages required for basic Windows development, including gdb. It's widely used without any unusual problems.

like image 152
Rob Kam Avatar answered Dec 19 '25 13:12

Rob Kam


The issue appears to be that they've changed the exception handling mechanism in a way that breaks the ABI. That means you can't (for example) drop in the new compiler and continue to use old object files and/or libraries. You have to re-compile everything from source code to get working results at all.

like image 29
Jerry Coffin Avatar answered Dec 19 '25 14:12

Jerry Coffin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!