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: gcc command


"rahul bapat" <rahul at cbl01 dot keiwa dot ne dot jp> writes:

> I need the correct syntax for gcc command.

Please read
http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Invoking-GCC.html#Invoking%20GCC

> I wish to compile 2 programs and run them simultaneously.

$gcc c1.c -o c1.exe ; gcc c2.c -o c2.exe ; c1.exe ; c2.exe

The -o option names the output file.
Please read
http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Overall-Options.html#Overall%20Options
and scroll down until you see -o

> For that when I write the gcc command for eg.
> $gcc c1.c
> then it creates a make file a.exe
> but in my case i wish to make an exe of my choice. I wish to make to exes.
[snip]


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