This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]