GCC与Visual Studio? [英] GCC with Visual Studio?

查看:245
本文介绍了GCC与Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中使用GCC而不是VC ++有多难?显然,一些关键字不匹配,有些可能不会得到语法高亮(除非你提供了新的语言服务)。

这是一个'makefile项目'是为了,很多?

解决方案

Visual Studio没有GCC插件作为例如Intel C ++的插件允许英特尔编译器作为Visual C ++的插件替代品。



您可以使用Makefile项目,它允许您使用任何您喜欢的外部工具(make,SCons ,果酱,不管)做你的构建。如果你不喜欢Makefiles,你可能想看一下 CMake ,它允许你生成Makefiles或Visual Studio项目从一个更简单的描述。这也意味着你不会受制于Makefiles或Visual Studio项目,但可以随意切换它们。


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?

解决方案

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.

这篇关于GCC与Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆