[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: const pains with lpcode in Lpeg 0.11
- From: Gavin Wraith <gavin@...>
- Date: Fri, 29 Mar 2013 16:27:34 GMT
In message <20130329153937.GE18728@pepperfish.net> you wrote:
> On Fri, Mar 29, 2013 at 01:33:18PM +0000, Rob Kendrick wrote:
> > On Fri, Mar 29, 2013 at 01:15:12PM +0000, Gavin Wraith wrote:
> > > I am having these error messages when I try to compile
> > > lpeg 0.11:
> > >
> > > "c.lpcode", line 287: Error: assignment to 'const' object 'follow'
> > > ..............
> Further to this; I tried the following:
> ..............................
>
> With Norcroft:
> *cc -strict -c99 -fah -Wh -Otime SSEx4nim.c
> Norcroft RISC OS ARM C vsn 5.69 [20 Oct 2010]
> "c.SSEx4nim", line 7: Warning: extern 'test' not declared in header
> "c.SSEx4nim", line 8: Error: assignment to 'const' object 'follow'
> c.SSEx4nim: 1 warning, 1 error, 0 serious errors
>
> With GCC, clang, and lcc, there is no error. I think this is a bug in
> Norcroft.
Thanks for this. I have now got it sorted, and version 5.60 of RiscLua
uses Lua 5.2.2 and Lpeg 0.11. I am afraid that my cleaving to Norcroft
is like Augustine of Hippo's "Lord grant me chastity and continence but
not yet".
I tried building a version with shared libraries and the SOManager but
got no success yet. I will probably switch when I do.
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/