'How to install G++ 4.9 on windows

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>.



Solution 1:[1]

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

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gath
Solution 2 Peter Csala