answersLogoWhite

0

How do you compile a file in C?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

First you need to create a text file containing the source code written in the C language.

Then, you call the compiler to check the syntax of your source code and translate it into machine code.

The exact means of calling the compiler depends on the operating system you are using and the vendor of the C compiler. For example, in some Unix systems the C compiler may be called as:

cc

CC

xlC

xlC_r

aCC

gcc

and others ...

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What are the file created after c file is save?

Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)


Nowadays How many compilers used in c language?

Whenever you modify a source-file, compile it once.


How do you compile a C program in Linux?

1. Create the source into a file with any text editor, for example: myprog.c2. Compile it: gcc -Wall -W -pedantic -g -o myprog myprog.c3. Run it: ./myprog


Is C plus plus preprocessor software?

Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.


How compile c program in editplus give you the steps?

You can use the gross c compiler and the file will just be compiled with no error. Or microsoft C++ Would work too if one's computer runs on windows.


Where the c-program can be written in Linux and how to save it and compile?

Simply any text edittor can be used to write C program. To compile the .c file saved, Linux comes with gcc compiler. In the command line: $ gcc -o outputfile inputfile.c will compile the inputfile.c and create executable outputfile. Other than that there are number of IDEs (i.e. Integrated Development Environment) are available such as Kdevelop, Eclipse etc.


How do you compile c in textpad?

Not possible.


How do you compile a C code in MS VS c plus plus?

Just build it with F7, or execute it with F5/F5. The MS VS Compiler understands the difference between C and C++. You can name the source file as something.C, if you want.


Can you compile program without header file?

Yes,we can compile our program without header file without any error,but we can not use any predefine functions like printf,scanf.


How do you compile objective c in GNUstep?

With GCC.


How do you start c compiler in cmd?

You need to have the path of the compiler in the envirorment variables. If you want to compile c++ navigate to the folder the cpp file is placed in and write g++ filename.cpp same thing with c just use gcc filename.c


Does C plus plus compiler will compile C in programming?

Yes we can compile a c program using c++ compiler. Because c++ evolved from the c. c++ have some additional features beyond c. c++ support almost all concepts used in c.