简体   繁体   English

如何在Visual C ++ 2010 Express中更改编译器

[英]How to change compiler in Visual C++ 2010 Express

I have Visual C++ 2010 Express and I want to build a 64-bit app. 我有Visual C ++ 2010 Express,我想构建一个64位应用程序。

On OS X we use gcc. 在OS X上,我们使用gcc。

If I install MinGW, how does one change the default compiler in Visual C++ 2010 Express to use MinGW or something else even. 如果安装了MinGW,则如何将Visual C ++ 2010 Express中的默认编译器更改为使用MinGW或其他方式。

you can't easily use a different C++ compiler from Visual C++ Express. 您不能轻易使用Visual C ++ Express中的其他C ++编译器。 but you can just use Visual C++ to build 64-bit app for Windows. 但是您只能使用Visual C ++来为Windows构建64位应用程序。

If you're looking to use something with MinGW, you could try using Notepad++ for editing code and compile with MinGW. 如果您想在MinGW中使用某些东西,可以尝试使用Notepad ++编辑代码并使用MinGW进行编译。

Visual Studio is pretty much restricted to its proprietary compiler and linker. Visual Studio几乎仅限于其专有的编译器和链接器。 If you are worried about keeping your code portable the follow ANSI/ISO C++ standards. 如果您担心使代码可移植,请遵循ANSI / ISO C ++标准。 Even then you will most likely have to recompile on each platform. 即使那样,您仍然很有可能必须在每个平台上重新编译。

You could also check out the Code::Blocks IDE http://www.codeblocks.org/ it's configurable with MinGW. 您还可以查看Code :: Blocks IDE http://www.codeblocks.org/ ,该代码可通过MinGW进行配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM