On Sun, 5 Jul 1998, john green wrote:
> i have a gcc running on my redhat5.1
>
> anyone tell me how to run amd compile programs on this gcc. guess the
> a.out stuff is old and it is elf now.
>
> so please tell me as to what are the basic commands fro running c
> programs
>
> thanks
> johng
>
>
Easy, here's some examples:
Compile a C file (f.ex the hello world prog)
gcc -o helloworld helloworld.c
Compile a C that needs the Math library
gcc -o mathprog mathprog.c -lmath
Use g++ instead of gcc when you compile C++ files.
Torbj�rn Kristoffersen
"USER:
A programmer who will believe anything you tell him."