httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [Fwd: Problem 2534]
Date Tue, 04 Aug 1998 00:11:45 GMT
Dan Jacobowitz wrote:
> 
> On Mon, Aug 03, 1998 at 08:03:32PM -0400, Jim Jagielski wrote:
> > The "problem" is getting the right declaration. A quick test shows that
> > 
> > 	static const char *end_foor = "</Bar>";
> > 
> > may not be right because the compiler doesn't see end_foor as a
> > const char* (at least with gcc 2.7.2.x on one of my test machines)
> > and complains when building :
> > 
> >     "initializer element for `core_cmds[1].name' is not constant"
> > 
> > Most likely a -f flag needed? Dean?
> 
> 
> Try :
> static const char const *end_foor = "</Bar>";
> 

I tried... No luck: First gcc warns about a duplicate const and then
errors out with the above.


-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message