How to compile a C file without visual studio

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

+5
source share
6 answers

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.

+10
%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

+1

, IDE, C, , devenv.com . . . , 'devenv.com/?'.

,

Sebastiaan

+1

. driis, .

, , microsoft , :

Microsoft .

MonoDevelop - , .

0

'c' . - , , . Microsoft nmake , gnu make, . , ( ) , .

0

All Articles