X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs Date: Wed, 31 May 2000 16:30:06 +0200 (MET DST) From: Hans-Bernhard Broeker X-Sender: broeker AT acp3bf To: djgpp-workers AT delorie DOT com Subject: Re: __dosexec_find_on_path question In-Reply-To: <3934E7C8.26244.7A952@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 31 May 2000, Mark E. wrote: [...] > I missed that, thanks. And I didn't get a warning. Yet when I tried to use > constant integers (static const inst interp_flag_skip_search = 1), gcc told > me the initializer wasn't constant. A 'const int' is not an integer constant, in C. This comes as a surprise to everyone facing it the first time, but it's a fact of life. If you want a constant with a name in a C program, instead of a magic number, you need to either #define it or use it as an enum member. Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.