Re: how to execute c script file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux