Recent

Author Topic: can FPC denote packge for used unit, for avoid unit names conflicts?  (Read 3973 times)

alexraynepe196

  • New Member
  • *
  • Posts: 26
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

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: can FPC denote packge for used unit, for avoid unit names conflicts?
« Reply #1 on: November 25, 2021, 11:20:36 pm »
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).

 

TinyPortal © 2005-2018