public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GNU C compiler options
@ 2005-08-03  4:04 manish.jain
  2005-08-03  5:07 ` Alessandro Madruga Correia
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: manish.jain @ 2005-08-03  4:04 UTC (permalink / raw)
  To: gcc-help


Hi,

I need to compile my program using GCC. Can I specify all options in a file
and give the file name as an argument to the GCC.

Regards,
Manish



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

* Re: GNU C compiler options
  2005-08-03  4:04 GNU C compiler options manish.jain
@ 2005-08-03  5:07 ` Alessandro Madruga Correia
  2005-08-03  5:07 ` Ian Lance Taylor
  2005-08-03 13:19 ` Ishwar Rattan
  2 siblings, 0 replies; 4+ messages in thread
From: Alessandro Madruga Correia @ 2005-08-03  5:07 UTC (permalink / raw)
  To: manish.jain; +Cc: ML gcc-help

[=-  manish.jain@in.abb.com  -=]
[=-  wrote on Wed, Aug 03, 2005 at 09:34:39AM +0530  -=]

> 
> Hi,

Hi

> 
> I need to compile my program using GCC. Can I specify all options in a file
> and give the file name as an argument to the GCC.

  I guess, you want an Makefile.

> 
> Regards,
> Manish

-- 
 ,= ,-_-. =.  [<o>] Alessandro Madruga Correia     
((_/)o o(\_)) [http://counter.li.org]              Slack User# 342751
 `-'(. .)`-'  GNU/Linux SlackWare 10.0             Kernel 2.6.12.2
     \_/      ln -s /dev/brain /dev/null
"Mostre-me teu bookmark e te direi quem es"

Linux phoenix 2.6.12.2-phoenix #11 Mon Jul 25 01:11:00 BRT 2005 i586 AuthenticAMD unknown GNU/Linux
 02:00:16 up  5:46, 15 users,  load average: 2.21, 1.52, 0.87

	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/

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

* Re: GNU C compiler options
  2005-08-03  4:04 GNU C compiler options manish.jain
  2005-08-03  5:07 ` Alessandro Madruga Correia
@ 2005-08-03  5:07 ` Ian Lance Taylor
  2005-08-03 13:19 ` Ishwar Rattan
  2 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2005-08-03  5:07 UTC (permalink / raw)
  To: manish.jain; +Cc: gcc-help

manish.jain@in.abb.com writes:

> I need to compile my program using GCC. Can I specify all options in a file
> and give the file name as an argument to the GCC.

gcc does not support reading the command line options from a file.
But you can do this (on Unix or Cygwin):
    gcc `cat gcc-options`

(You actually can control the options passed to gcc in a file by using
a spec file via the -specs option, but this is hard to use correctly
and somewhat unportable between gcc versions.)

Ian

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

* Re: GNU C compiler options
  2005-08-03  4:04 GNU C compiler options manish.jain
  2005-08-03  5:07 ` Alessandro Madruga Correia
  2005-08-03  5:07 ` Ian Lance Taylor
@ 2005-08-03 13:19 ` Ishwar Rattan
  2 siblings, 0 replies; 4+ messages in thread
From: Ishwar Rattan @ 2005-08-03 13:19 UTC (permalink / raw)
  To: gcc-help



On Wed, 3 Aug 2005 manish.jain@in.abb.com wrote:

>
> Hi,
>
> I need to compile my program using GCC. Can I specify all options in a file
> and give the file name as an argument to the GCC.

Yes that file is caled makefile, look at make/makefile.

-ishwar

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

end of thread, other threads:[~2005-08-03 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03  4:04 GNU C compiler options manish.jain
2005-08-03  5:07 ` Alessandro Madruga Correia
2005-08-03  5:07 ` Ian Lance Taylor
2005-08-03 13:19 ` Ishwar Rattan

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).