Because window have no Linux like package management tool for now, when we want to upgrade some development tools, we have to find windows installer or compile by ourselves and set the right thing into PATH.
Recently, I want to use the <regex> in C++ for G++ in eclipse. This is a C++11 new feature and just successfully implemented in gcc compiler. GCC version 4.8 although it contains <regex>, but the functions haven't implemented.
I've tried window installer from MinGW official site, but looks like it doesn't update PATH for me. Eventually, I find a website that contains a Windows installer could set the right PATH and easy to setup in eclipse.
Go to this address, scroll down the page, download gcc-4.9.4-32.exe or gcc-4.9.4-64.exe depending on your system version.
Click the downloaded file, wait extracting finish. Then click accept, set the install address to c:\MinGW.
Then it should tells you the version of your gcc is 4.9.1.
If you haven't download eclipse CDT, download it here.
Open Eclipse, Window -> Preference -> C++ -> New C++ Project Wizard -> Preferred Toolchains tab. For every project type under Executable, set Toolchains to MinGW GCC. Click OK to finish.
Now, our eclipse C++ projects could use <regex>!