Forum > General

Error on compiling

(1/1)

namrud:
Dear all

I installed the newest binaries of LAZARUS and tried to MAKE the newest CVS code. But I got this error. Before I used make in the command line I wrote "make clean".

But 2 times I got the following message:


--- Quote ---
Compiling componentpalette.pas
Compiling .\designer\designerprocs.pas
componentpalette.pas(55,33) Hint: Parameter "Sender" not used
componentpalette.pas(56,34) Hint: Parameter "Sender" not used
componentpalette.pas(57,31) Hint: Parameter "Sender" not used
componentpalette.pas(58,30) Hint: Parameter "Sender" not used
componentpalette.pas(484,13) Error: Identifier not found "OnDblClick"
componentpalette.pas(563) Fatal: There were 1 errors compiling module, stopping
make[1]: *** [lazarus.exe] Error 1
make[1]: Leaving directory `C:/develop/TortoiseCVS/lazarus'
C:\develop\pp\bin\win32\make: *** [ide] Error 2

--- End quote ---


Can you fix this please?

Thank you.

Kind regards

namrud

Vincent Snijders:
I just tried it and it compiled without error.

I used Find Declaration and it showed line 1004 of lcl\controls.pp.

--- Code: ---    property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick;
--- End code ---


Funny thing is: this property is protected, so it shouldn't be accessible, but both fpc 1.9.5 and 1.0.10 don't give an error.
What compiler are you using?

Anonymous:
Thank your for your fast reply.

I use the compiler delivered with the newest lazarus binaries. My OS is WinXP Prof.

You are right I checked the file, this property is protected. But why they shouldn't be accessible.

Sorry for my question but I am still a beginner.

Vincent Snijders:
This code has been changed slightly. Try updating your lazarus sources and recompile them.

--- Quote from: "Anonymous" ---You are right I checked the file, this property is protected. But why they shouldn't be accessible.
--- End quote ---

A protected property is only visible in descendant classes. An execption is made for code in the units of the declaring class and the descendants class.

Navigation

[0] Message Index

Go to full version