[Lazarus] Where to set project search paths in lazarus?
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Sep 30 09:54:50 CEST 2010
On 29/09/2010, Bo Berglund <bo.berglund at gmail.com> wrote:
>
> property Xmin: double read GetXmin;
> function Scale(Xmin, Xmax, Ymin, Ymax: Double; bSame: boolean): boolean;
>
> I get an error because of a duplicate identifier on the function
> line because the property is named the same as the argument to
> the function! This makes no sense at all to me. Why would this
> be an error??? This unit compiles fine in Delphi7.
>
> What is going on?
You are using compiler mode {$mode objfpc} instead of {$mode delphi}.
The first one (normally the default for FPC projects is more strict
with object pascal syntax. The latter one is more geared to Delphi
behaviour. Just to get your project to compile with minimal fuss,
change to delphi compiler mode. In the long run, I would recommend you
fix your code and use objfpc mode.
NOTE:
Compiler modes are set per unit. The default (if the unit doesn't
contain {$mode ...} line can be set via a compiler parameter. Read the
FPC compiler help for more details.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net:8080/fpgui/
More information about the Lazarus
mailing list