rkohser
rkohser

Reputation: 149

Is it possible to use compile with MSVC without having Visual Studio?

At my work we are trying to use a standalone repository, meaning that our repo contains the source of course but also the dependencies and the build tool chain. By build tool chain I mean all the tools that are needed to build our application. But the only exception is Visual Studio : to be able to compile our c++ parts, we need to install the entire environment and this is not really convenient. So I was wondering : Would it be possible to compile a c++ application without having VS installed ? But only some kind of build tool chain package ?

I investigated a found out the MSBuild tool which is now part of the VS package but which can be also downloaded alone ("Microsoft Build Tools 2013"). But this does not sontain the MSVC compiler, so it would not help me...

Would it be possible to manually copy the compiler to be able to do this? Has anyone ever done that?

Upvotes: 2

Views: 2992

Answers (1)

André Moreira
André Moreira

Reputation: 88

Yes, it's possible. One possibility is copy the cl.exe (VS_FOLDER/bin/architecture) and all its dependencies.

Compiling a Native C++ Program on the Command Line

Another strategy consists in downloading Microsoft Windows SDK:

Download Microsoft SDK

Best regards

Upvotes: 2

Related Questions