How do I set my Visual studio 2008 compiler to GNU GCC. Can I also make it specific to projects? I didn't find any conclusive answer.
You can't use the compiler directly.
You can, however, invoke a makefile instead of using the built-in build system.
mingw32-make
mingw32-make
called MinGWMakefile
, with 3 targets: clean
, build
, and rebuild
. This can be very tedious if you've never done that before.Build Command Line: mingw32-make -f MinGWMakefile build ReBuild Command Line: mingw32-make -f MinGWMakefile rebuild Clean Command Line: mingw32-make -f MinGWMakefile clean
You need to transform the output of gcc, from this:
filename:line:message
To this:
filename(line):message
I was using a custom C++ program to do that, but any regular expression tool will do the trick.