Using GCC from within VS 2005(8) IDE

2019-06-16 04:54发布

Is there a way to utilise the GCC compiler whilst still being able to develop via the Visual Studio IDE?

Our project is cross-platform, and I quite frequently get into trouble from my colleague because I'm checking in code that's not standards compliant (this can be attributed to the VS compiler!).

I'd still like to be able to compile using the MS compiler, so I can continue debugging, etc, however I'd like to be able to switch to compile using GCC, just so that I can be sure I'm not breaking the build on other platforms.

Is this possible?

7条回答
ら.Afraid
2楼-- · 2019-06-16 05:58

it depends how complex your project files are:

you definitly need a gcc environment like cygwin.

  • for small projects or single file compile you can use a custom build tool (rules-file)

  • for large projects/solutions I'm auto-generating an autotools configure/makefile from the vcproj/sln-file and compile this inside the IDE. source files/lines of warnings and errors of gcc get translated to their IDE-equivalent (clickable in output window).

查看更多
登录 后发表回答