how to execute c script file

John Love-Jensen eljay@adobe.com
Wed Mar 21 21:41:00 GMT 2007


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



More information about the Gcc-help mailing list