answersLogoWhite

0

Compiling and running are two completely different procedures. To compile a C program you need a C compiler and linker (two separate programs). Once the source code has been compiled to object files you then need to link those files to create an executable. Once you have an executable you can run it.

There's nothing particularly special about compiling from the command line as opposed to compiling within an integrated development environment (IDE). They both do exactly the same thing. However, an IDE is easier because it not only helps you easily organise your project files, it can build (compile and link) and execute the program with a single command. The end result is exactly the same as you would get by manually compiling, linking and executing from the command line.

Command lines include a bewildering array of options and switches (parameters). To make sense of them, it is best to use the IDE and examine the command line that it generates for you, changing compiler and linker options to see what effect that has on the command line. Once the IDE command line settings are exactly the way you want them you can copy/paste those command lines into a command file (*.cmd) or a batch file (*.bat) which you can easily invoke from the command line.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is a solution for this program cannot run in MS-DOS?

That program might not support MS-DOS..


Use What is a solution for this program cannot run in ms-dos?

The only solution is to run the application in Windows and not from a MS-DOS only system.


Why your program compiles successfully in devcpp but does not execute?

Maybe it does execute, but in a temporary MS-DOS window, which is closed when program's terminated. Run your program from a separate MS-DOS window (Start/Run: CMD.EXE)


How do you program casio fx-88op?

A Casio FX-88OP is a scientific calculator. To program this, simply run the program in the true MS-DOS mode. Do not use an MS-DOS prompt.


Can you run programs compiled with Turbo C on Linux?

Turbo C cannot compile native Linux binaries, only programs for MS-DOS. MS-DOS applications can be run on Linux through a variety of methods, including DOSEMU, DOSBox, QEMU, Bochs, and VirtualBox.


How do you find the list of programs currently being executed in ms dos?

No such functionality exists because, in most situations, only one program can be run at a time in MS-DOS.


Which of these is not an application program - Supercalc or MS DOS or Word or Excel?

MS DOS. It is an operating System.


What is the command to run program in ms Dos?

To run a program in MS-DOS, you simply need to type the name of the executable file followed by pressing the Enter key. For example, if the program is named "myprogram.exe," you would type myprogram and hit Enter. If the program is not in the current directory, you need to specify the full path, like C:\path\to\myprogram.exe.


Can you run ms-dos in Windows 98?

Not all but most DOS software can run on Windows 98..


How do you do c programming in ms dos?

The most important steps are these: 1. write the source files 2. compile them to object modules 3. link the executable 4. run the executable


How do you open a Python program with MS-DOS?

open MS-DOS in the directory you have the python file in. type "python [INSERTNAMEOFSCRIPT]"


What is the process of carrying out command?

in windows 98 its start,run,command. or you can boot into ms-dos by going to start,shutdown,restart into ms-dos.