Date: Wed, 8 Sep 1999 17:54:17 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Tuomo A Turunen cc: djgpp AT delorie DOT com Subject: Re: Constant definitions to compiler In-Reply-To: <7r5npg$c9a$1@oravannahka.helsinki.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 8 Sep 1999, Tuomo A Turunen wrote: > Is it possible to give constant definitions to compiler as command line > arguments? Something like this: > > gcc (define OWN_CONSTANT "testing") test.c -o test.exe This is supported by every C compiler I've seen, and GCC is no exception. You do it like this: gcc -DOWN_CONSTANT="testing" test.c -o test.exe This is described in the GCC docs, btw.