[lazarus] Stange error message

Marc Weustink weus at quicknet.nl
Wed Jun 21 20:47:27 EDT 2000


At 01:50 22-06-2000 +0200, Marc Weustink wrote:
>When compileing my new selection stuff I get the following error:
>
>controlselection.pp(140,1) Error: Symbol can't be published, can be only a 
>class

I found the error.

In my implementation section I declared the following

type
   TMyControl = class(TControl);

const
   blah....

constructor.... etc.... all implementation stuff

Unlike Delphi, FPC doesn't like this, it wants an end statement after a 
class. It should be declared as:

type
   TMyControl = class(TControl)
   end;

Marc







More information about the Lazarus mailing list