Root directory in unit search path (-Fu) is not found
Original Reporter info from Mantis: lacak @lacak.sk
-
Reporter name: LacaK
Original Reporter info from Mantis: lacak @lacak.sk
- Reporter name: LacaK
Description:
When in unit search path (-Fu) is specified root directory units in this path are not found and compiler reports "Cannot find XYZ used by ..."
Example: -FuF:\ -Fu\server\share etc.
Additional information:
Using RTL SysUtils DirectoryExists('F:') or DirectoryExists('\server\share') returns in both cases True.
RTL SysUtils implementation of DirectoryExists() function utilizes (on Windows):
begin
Attr:=GetFileAttributesW(PWideChar(Directory));
if Attr <> $ffffffff then
Result:= (Attr and FILE_ATTRIBUTE_DIRECTORY) > 0
else
Result:=False;
end;
May be that compiler uses another check for directory existence (as Tomas mentioned in comment)?
Mantis conversion info:
- Mantis ID: 37793
- Version: 3.0.4
- Monitored by: » @xhajt03 (Tomas Hajny)