GCC with Visual Studio?

别说谁变了你拦得住时间么 提交于 2020-01-08 19:39:06

问题


How hard would it be to use GCC instead of VC++ from within Visual Studio 2008? Obviously, some of the keywords won't match, and some may not get syntax highlighting (unless you made a new language service).

Is this what a 'makefile project' is for, pretty much?


回答1:


There is no GCC plugin for Visual Studio as the one for example for Intel C++, which allows Intel's compiler to be used as a drop-in replacement for Visual C++.

You can use Makefile projects which allows you to use any external tool you like (make, SCons, jam, whatever) to do your build. If you don't like Makefiles, you may want to look at CMake which allows you to generate Makefiles or Visual Studio projects from a much simpler description. This also means that you're not bound to Makefiles or Visual Studio projects, but can switch between them as you like.




回答2:


See the thread "Use a gcc port to build programs with Visual Studio" in MSDN's forums for similar discussion.

You can use makefiles and also use WinGDB for better integration (including debugging)




回答3:


You can use Visual GDB add-in for Visual Studio that simplify work with GCC



来源:https://stackoverflow.com/questions/216025/gcc-with-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!