This website completely moved to new platform. For latest content, visit www.programmingposts.com

Search this Site

22 Jan 2014

Compiling a C program with Visual Studio Command Prompt

In this article we will see how to compile a C Program with Visual Studio Command Prompt.
Here i am using Visual studio 2010.
For opening Visual Studio command prompt,
All Programs -> Microsoft visual Studio 2010 -> Visual Studio Tools -> Visual Studio command prompt

 

After opening command prompt u should change the folder directory, in which c program is present.



After changing directory, For compiling a program suppose file name is helloworld.c
type cl helloworld.c and press enter , then the program will be compiled and the the respective .obj (object file) and .exe file will be generated.




No comments:

Post a Comment

Thanks for your comments.
-Sameer