Lazarus
Free Pascal => Beginners => Topic started by: alexraynepe196 on November 25, 2021, 11:08:49 pm
-
Porting delphi project into lazarus 2.0.10 on win8.
projects have unit crc.
and after build it, starts check lcl units.
lcl units -> wants zstream FPC package
zstream -> wants gzio unit
gzio unit -> wants fpc package hash/crc unit
And since project/crc unit alredy copmpiled? and FPC have PPU in build-out dir, therefore it try project/crc for gzio, insteard demanded hash/crc.
Have FPC any solution to resolve such conflicts? Can gzio unit somehow denote from what package it wants crc?
Or rename project units is only way to avoid unit-name collision?
-
Have FPC any solution to resolve such conflicts?
No.
Can gzio unit somehow denote from what package it wants crc?
No.
Or rename project units is only way to avoid unit-name collision?
Yes.
Best either avoid common names for your own units or use a suitable prefix for your project. You can even use dotted unit names if you want (e.g. Foo.Bar.pas).