fshcomp cannot compile lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- sylvanus67 · 2012-03-24 15:28 Hi! I want to compile fshcomp package, but I gave the message for this line: Code: [Select] if not Active then inherited else RightLean(Self);    QuoteC:\lazarus\components\fsh\SrEditInt.pas(278,51) Error: Call by var for arg no. 1 has to match exactly: Got "TSrEditInt" expected "TCustomEdit" I could previously successfully compile it with fpc 2.4.2. What is wrong? Thanks. Lazarus version 0.9.30.4 SVN 26610 FPC 2.6.2 Windows XP ---------------------------------------------------------------------- CaptBill · 2012-03-24 15:37 You are casting the wrong type of variable in RightLean method.It wants TCustomEdit and you are giving it a TSrEditInt (via the self assignment). Need to somehow convert it first or modify the RightLean header to accept/handle this variable type. ---------------------------------------------------------------------- sylvanus67 · 2012-03-24 17:33 Thank you. I have understood the error message, but I do not know the solution for the problem. And - as I I mentioned before - with fpc 2.4.2 everything was OK. ---------------------------------------------------------------------- CaptBill · 2012-03-24 17:48 Oops. I missed that it is not 'your' unit but a lcl unit. Looks like you possibly found a bug. ---------------------------------------------------------------------- marcov · 2012-03-24 19:47 Quote from: CaptBill on March 24, 2012, 06:48:15 pmOops. I missed that it is not 'your' unit but a lcl unit. Looks like you possibly found a bug. There is no such directory "fs*" under components/ in lazarus. ---------------------------------------------------------------------- Leledumbo · 2012-03-24 22:03 QuoteWhat is wrong? Thanks.Probably related to this change in FPC 2.6.0. QuoteOops. I missed that it is not 'your' unit but a lcl unit. Looks like you possibly found a bug.Fshcomp is a 3rd party package.