[lazarus] what's wrong with the published switch for lazarus ?

Yves Delalande yves.delalande at le-village.com
Mon Nov 15 04:20:38 EST 1999


I finally get the good CVSROOT and compiled fast and fine the new compiler and
new libs. But for  Lazarus compiling, I have always the same type of error in
many lines "published" classes :  
graphics.pp(275,9) Error: The class can't have a published section, use the
{$M+} switch  
So what's wrong ? 
Thanks a lot for the answer !
Here's the log file of compilation : 
==============================================================
[root at delalande lazarus]# make all 
make -C lcl 
make[1]: Entering directory `/usr/lib/fpc/0.99.13/lazarus/lcl' 
ppc386 -Fu/usr/lib/fpc/0.99.13/rtl/linux -Fu/usr/lib/fpc/0.99.13/units/linux -Fu../../fcl/linux -Fu../../gtk -FE. -Fu/usr/lib/fpc/0.99.13/units/linux -di386 controls.pp  
Free Pascal Compiler version 0.99.13 [1999/11/15] for i386 
Copyright (c) 1993-1999 by Florian Klaempfl 
Target OS: Linux for i386 
Compiling controls.pp 
text.inc(30,1) Hint: Conditional LINUX was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional INT64 was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional HASSAVEREGISTERS was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional NEWVMTOFFSET was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional HASINTERNMATH was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional NEWMM was set at startup in last compilation of syslinux.pp 
text.inc(30,1) Hint: Conditional I386 was set at startup in last compilation of syslinux.pp 
objpas.pp(30,1) Hint: Conditional LINUX was set at startup in last compilation of objpas.pp 
objpas.pp(30,1) Hint: Conditional HASRESOURCESTRINGS was set at startup in last compilation of objpas.pp 
objpas.pp(30,1) Hint: Conditional SYSTEMTVARREC was set at startup in last compilation of objpas.pp 
stringsi.inc(31,11) Hint: Conditional LINUX was set at startup in last compilation of sysutils.pp 
syscalls.inc(31,11) Hint: Conditional I386 was set at startup in last compilation of linux.pp 
cregist.inc(31,19) Hint: Conditional LINUX was set at startup in last compilation of /usr/lib/fpc/0.99.13/fcl/linux/classes.pp 
Compiling graphics.pp 
graphics.pp(225,12) Warning: An inherited method is hidden by TGRAPHIC.CREATE 
graphics.pp(275,9) Error: The class can't have a published section, use the {$M+} switch 
graphics.pp(301,6) Warning: An inherited method is hidden by TGRAPHIC.CREATE 
graphics.pp(312,6) Warning: An inherited method is hidden by TBITMAPCANVAS.DESTROY 
graphics.pp(322,6) Warning: An inherited method is hidden by TGRAPHIC.CREATE 
graphics.pp(325,1) Fatal: There were 1 errors compiling module, stopping 
make[1]: *** [controls.ppu] Error 1 
make[1]: Leaving directory `/usr/lib/fpc/0.99.13/lazarus/lcl' 
make: *** [lcl] Error 2 
[root at delalande lazarus]# exit 
==============================================================






More information about the Lazarus mailing list