How to install G++ 4.9 on windows

65.5k Views Asked by At

I know this seems like a duplicate of this question and many more, but hear me out. That question points to MingGW, which, as far as I can tell, only has version 4.8.whatever of gcc with it. I tried Cygwin, but Cygwin never really worked with my IDE.

I'm trying to add the exe for G++ 4.9 to the GNU GCC Compiler that comes with CodeBlocks. I just need the g++.exe for the #include <regex>.

2

There are 2 best solutions below

0
On

Use the distro from this site, they have g++ 4.9.2 which supports

1
On

You can install MinGW. It contains GCC and G++