[Lazarus] CodeTools error when using 'section' keyword

Sven Barth pascaldragon at googlemail.com
Wed Oct 22 08:09:27 CEST 2014


Am 21.10.2014 23:32 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:
>
>
>
> > Michael Ring <mail at michael-ring.org> hat am 21. Oktober 2014 um 22:36
> > geschrieben:
> >
> >
> > program hello;
> > const
> >  devcfg3: longWord = DEVCFG3_DEFAULT; section '.devcfg3';
> > begin
> > end.
> >
> > is a program that compiles fine but gives me an error in lazarus when I
> > try to use completion with ctrl-SPACE.
> >
> >
> > hello.pas(3,48) Error: = erwartet aber '.devcfg3' gefunden
>
> fpc 2.6.4 gives the same error.
> When is "section" allowed?

It only works on certain targets (currently only Embedded AFAIK). I don't
know its rules of declarations currently though...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141022/73b964a3/attachment-0003.html>


More information about the Lazarus mailing list