11

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

  • 1
    I think that cigwin is the best way for gcc on Windows. What's your OS ? – Damiii Jun 7 '14 at 1:02
  • 1
    Even with 4.8, invoking g++ with the -std=c++11 switch should work... Not sure about MinGW... – selbie Jun 7 '14 at 7:36
  • @selbie I'm a noob, how would I do that? (Post as answer please.) – FracturedRetina Jun 8 '14 at 22:37
  • Type g++ -std=c++11 mycode.cpp at the command line. – selbie Jun 9 '14 at 3:00
  • 2
    Have you considered just using Visual Studio Express? VS is a free download these days and is largely C++11 compliant. – selbie Jun 9 '14 at 19:28
6

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.