开发者

Stand-alone VC++ compiler

开发者 https://www.devze.com 2023-03-17 08:30 出处:网络
Is there a stand-alone VC++ compiler available for Windows? Even 开发者_StackOverflow社区a CLI compiler is fine.

Is there a stand-alone VC++ compiler available for Windows? Even 开发者_StackOverflow社区a CLI compiler is fine.

Since I'm using Windows in Virtualbox, Visual Studio is horribly slow due to insufficient memory.


Now there is Microsoft Visual C++ Build Tools.

Custom install and unselect all SDKs for a 1GB cross platform "minimal" environment.

It can be reduced to ~300MB if you delete everything non x86 after installation.


Windows SDK include c++ compiler.


You don't have to use visual studio (or even the visual studio commandline devenv.exe). You can use the C++ compiler directly: cl.exe.

Here is the MS page for the compiler options


You can run a VC++ build from the command-line, which may be a bit lighter on resources that running the full GUI. Have a look at the Microsoft page for details, but in brief you can build an existing project using, for example:

devenv MySolution /Build Debug

You can also set up your project to use makefiles, and use nmake just as you would use make to build it.

To make all of this much easier, when you install Visual Studio you get a "Visual Studio Commandline" shortcut, which sets up all of the required paths for you.


Have you considered Cygwin??

http://www.cygwin.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号