[lazarus] CVS changes
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Feb 4 12:58:46 EST 2002
On Sun, 03 Feb 2002 19:18:51 +0100
Michal Bukovjan <michal.bukovjan at openone.cz> wrote:
> Strange, I could not reproduce exactly this behaviour (it works now),
> now the compiler errors out straight away:
> 1) Declare the new class in buttons.pp, just
>
> TMyButton = class(TBitBtn);
>
> 2) Now move the declaration down *AFTER* the TSpeedButton declaration.
> It will not compile, blaberring something about:
>
> buttonglyph.inc(41,3) Error: Symbol can't be published, can be only a class
> buttonglyph.inc(42,3) Error: Symbol can't be published, can be only a class
> buttonglyph.inc(43,1) Error: Symbol can't be published, can be only a class
> speedbutton.inc(229,3) Error: Symbol can't be published, can be only a class
> speedbutton.inc(230,1) Error: Symbol can't be published, can be only a class
> buttons.pp(514) Fatal: There were 5 errors compiling module, stopping
> make[1]: *** [allunits.ppu] Error 1
> make[1]: Leaving directory `/home/michal/source/lazarus/lazarus/lcl'
> make: *** [lcl] Error 2
This is a compiler bug.
Just add an 'end' and it will compile:
TMyButton = class(TBitBtn) end;
Plz report it.
Mattias
More information about the Lazarus
mailing list