Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Compiling C using Command Prompt not C or C++ IDE?

Situation :

Installed Visual Studio 2005

Written C source code using notepad (Hello world)

Wanted to compile using command prompt not VS2005 IDE

Can anyone provide me the whole command that is needed to compile and run the hello world program in "Command Prompt not by using any IDE" ?

Wanted to know how C is compiled and run :-) something like java javac Hello.java then java Hello. How is this done manually in C ?

Thank you in advance.

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    When you compile your source in IDE it should display the comands in output window

  • 1 decade ago

    Projects And Programming Helps-

    http://hobbyprojects.org/

  • Anonymous
    5 years ago

    I downloaded Microsoft SDKs and DDKs (loose) that incorporate the C/C++ compiler. devoid of seen Studio, the code must be compiled by employing instructions and occasion purposes practice what to do. I rather have them in a BAT document. suggestions are stumbled on be typing CL /? My examples instructions for assemble and link are: cl /O2 /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Oi /ML /W4 /Wp64 /TP /EHsc /Zi /G5 /Fa /c RandMP32.cpp link /LARGEADDRESSAWARE WINMM.LIB GDI32.LIB COMDLG32.LIB USER32.LIB RandMP32.obj asmtime.obj CPUasm.obj RandMPres.obj

Still have questions? Get your answers by asking now.