cvs.gedasymbols.org/archives/browse.cgi | search |
Date: | Wed, 8 Sep 1999 17:54:17 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Tuomo A Turunen <tuturune AT cc DOT helsinki DOT fi> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Constant definitions to compiler |
In-Reply-To: | <7r5npg$c9a$1@oravannahka.helsinki.fi> |
Message-ID: | <Pine.SUN.3.91.990908175253.29359C-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |