This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc command
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "rahul bapat" <rahul at cbl01 dot keiwa dot ne dot jp>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 19 Mar 2003 04:40:50 -0800
- Subject: Re: gcc command
- References: <00ee01c2ede5$281873a0$8f01a1c0@rahul>
- Reply-to: gcc-help at gcc dot gnu dot org
"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]