Forum > Beginners
can FPC denote packge for used unit, for avoid unit names conflicts?
(1/1)
alexraynepe196:
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?
PascalDragon:
--- Quote from: alexraynepe196 on November 25, 2021, 11:08:49 pm ---Have FPC any solution to resolve such conflicts?
--- End quote ---
No.
--- Quote from: alexraynepe196 on November 25, 2021, 11:08:49 pm ---Can gzio unit somehow denote from what package it wants crc?
--- End quote ---
No.
--- Quote from: alexraynepe196 on November 25, 2021, 11:08:49 pm ---Or rename project units is only way to avoid unit-name collision?
--- End quote ---
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).
Navigation
[0] Message Index