RE: program with various files be compiled

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

 



Hi Alexandre,

>Could someone tell me which command i am supposed to use so as to get a program with various files be compiled using gcc (c compiler in Cygwin shell).

Assuming your various files are foo.c, bar.c, quux.c:

gcc -o myapp foo.c bar.c quux.c

Then you can run myapp:

./myapp

If you want to see what the gcc toolchain driver is doing behind the scenes:

gcc -v -o myapp foo.c bar.c quux.c

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