public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc command
@ 2003-03-19  9:48 rahul bapat
  2003-03-19 14:07 ` LLeweLLyn Reese
  0 siblings, 1 reply; 2+ messages in thread
From: rahul bapat @ 2003-03-19  9:48 UTC (permalink / raw)
  To: gcc-help

I need the correct syntax for gcc command.
I wish to compile 2 programs and run them simultaneously.
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.
with different names. How is it possible ?
Please help me.
thanking you
rahul


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc command
  2003-03-19  9:48 gcc command rahul bapat
@ 2003-03-19 14:07 ` LLeweLLyn Reese
  0 siblings, 0 replies; 2+ messages in thread
From: LLeweLLyn Reese @ 2003-03-19 14:07 UTC (permalink / raw)
  To: rahul bapat; +Cc: gcc-help

"rahul bapat" <rahul@cbl01.keiwa.ne.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]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-19 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19  9:48 gcc command rahul bapat
2003-03-19 14:07 ` LLeweLLyn Reese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).