Thursday, March 15, 2012 1:25 AMHow can I compile my MFC C++ project with the command line compiler? Is it possible to have a portable version of my VS2010 compiler and if so what files would I need to put on a flash drive? (CL.EXE or DEVENV.EXE or BOTH)
Randy "DrB" Faldon
Thursday, March 15, 2012 7:50 AM
As for your second question: I don't' believe that you are, per license terms, allowed to "extract" a bunch of VS files to a flash drive and run the compiler like that. You need to install the product using the installer. So put your installation on said flash drive and install on the host system.
 You can also use VBS; please don't ;-)
Friday, March 16, 2012 6:08 AMDrBones71 wrote:>>How can I compile my MFC C++ project with the command line compiler? Is it>possible to have a portable version of my VS2010 compiler and if so what>files would I need to put on a flash drive? (CL.EXE or DEVENV.EXE or BOTH)You can certainly compile individual files with cl.exe, or write a makefileand use nmake to do your builds. If you want to use your project files,then you need msbuild.Note, however, that you need a lot more than cl.exe. Cl.exe is just ashell front-end that calls other programs to do the individual compilerstages. Further, you'll also need all of the include files and all of thelibraries, plus a large number of registry entries. A portable version isreally not possible.--Tim Roberts, email@example.comProvidenza & Boekelheide, Inc.
Tim Roberts, VC++ MVP Providenza & Boekelheide, Inc.
- Marked As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Wednesday, March 28, 2012 8:05 AM