I have a visual studio 2008. I have a small C program. I want to compile this C file on the command line. How can I do it? please indicate to me a place where I can learn more about working with projects without a visual studio.
thanks
If you have Visual Studio, you also have a C command-line compiler that Visual Studio calls when creating the project. Therefore, you just need to call it from the command line.
C , , http://gcc.gnu.org/releases.html . http://www.thefreecountry.com/compilers/cpp.shtml
, Microsoft C/++ (cl.exe, VC Visual Studio), Visual Studio ( ). "helloworld.c", :
cl helloworld.c
. MSDN.
%comspec% /k ""c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
(visual studio 2010, editor: notepad.exe )
c:\temp > cl.exe hello.c
, IDE, C, , devenv.com . . . , 'devenv.com/?'.
,
Sebastiaan
: http://msdn.microsoft.com/en-us/library/ms235639(VS.80).aspx
MSDN - .
. driis, .
, , microsoft , :
Microsoft .
MonoDevelop - , .
'c' . - , , . Microsoft nmake , gnu make, . , ( ) , .