answersLogoWhite

0

1. Create your source-file with any text-editor (mcedit myprogram.c, for example).

2. Compile it: gcc -g -Wall -W -pedantic -o myprogram myprogram.c

3. Fix the errors and warnings, if any

4. Run your program: ./myprogram

(Note: you should not use linux-9.0 yet, as only linux-2.6.x released).

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Why cannot you include conioh in your c program when you program in Linux system?

You could, if you had conio.h in linux, but you don't have, that's why.


How do you save a c program in Linux?

It depends on the editor.


Write the program in Linux to find the reverse of any string?

i am sam


How do you get Linux program error in void main in c?

This question cannot be answered without seeing the source program.


What does the C language have to do with the success of Linux?

Very little. C is a very common language to write operating systems in.


What language was to write Linux?

Linus Torvalds wrote the Linux kernel in C. Other components written by other contributors for other distributions may be in C or C++.


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.


Write a c program for creating a virus?

a c program for creat a virus


How do you write a program that will call a function to multiply 4 numbers and return the answer to main program?

In Windows, use notepad.exe; in linux, use program xedit.


Where do we write main function in a c program?

Into the source program.


Can you install C language in Linux?

C isn't a program, or something you install; it is a programming language for writing software. Linux and most of the programs that run on it were written in C, and a C compiler and libraries are supplied with most systems, or are readily available.


How do you run a C program in Linux?

All binaries are launched by simply typing the name of the application.