How can I use the console to compile a C program with the VS2010 compiler? Without using the studio itself.

    2 answers 2

    • install Windows SDK.
    • Run the Windows SDK.
    • msbuild command, specifying the path to the solution.

      Well, you need to understand that you have installed Visual C ++ 2010, otherwise the question does not make sense ... If I understand it correctly, you want to compile without using a cumbersome IDE.

      When you install, you get a shortcut such as "Visual Studio Command Line (2010)". It opens a console window in which you simply call the compiler (well, or what you need - for example, nmake if there is a makefile ). Which keys to set depends on what you want. Help - cl /?

      To begin with the simplest

       cl prog.c 

      it is enough to compile a simple program. Further, see what you need - optimization there, or static / dynamic linking of libraries, etc.

      I want to believe that I correctly understood your question :)