This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to execute c script file
- From: John Love-Jensen <eljay at adobe dot com>
- To: Eswari Natrajan <essu_n21 at yahoo dot co dot in>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 21 Mar 2007 13:44:10 -0500
- Subject: Re: how to execute c script file
Hi Eswari,
Assuming your C source code is called Foo.c and you want the executable to
be called Foo, you'd do this:
gcc -o Foo Foo.c
To run the program Foo, you'd do this from the directory it was
compile/linked in:
./Foo
HTH,
--Eljay