|
| | Subject: | RE: program with various files be compiled | | Group: | Gcc-help | | From: | John \(Eljay\) Love-Jensen | | Date: | 27 Dec 2006 |
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
|