[fpc-pascal]Where is the error?
M.Santhoff at t-online.de
Wed Sep 1 08:23:22 CEST 2004
Am Di, den 31.08.2004 schrieb Michalis Kamburelis um 22:25:
> When you compile using -S2 parameter you are compiling in objfpc mode.
> This mode is not exactly compatible with Delphi. In this particular
> case, the problem is that in objfpc mode method parameters can't have
> the same name as the object properties and fields (that's what
> "Duplicate identifier ..." errors mean). That's often very nice
> safety-check, however it makes many Delphi code invalid in objfpc mode.
> Solution is to compile in delphi mode:
> fpc -Mdelphi mat.pas
> works OK.
This leads me to the question:
Is it "legal" to link together objects compiled in different modes? (I
haven't tried if it is possible at all ...)
For example Alan would compile his matrix stuff in delphi mode and link
to other object files compiled in objpas mode?
More information about the fpc-pascal