fcl-passrc {$include} directive always requires file extension.
Original Reporter info from Mantis: ryan_joseph @genericptr
-
Reporter name: Ryan Joseph
Original Reporter info from Mantis: ryan_joseph @genericptr
- Reporter name: Ryan Joseph
Description:
FPC will attempt to resolve include files by adding common file extensions like .inc but fcl-passrc does not.
===============
// Error even though settings.inc is in the search path
{$i settings}
From the compiler source:
=== code begin ===
{ try to find the file }
found:=findincludefile(path,name,foundfile);
if (not found) and (ExtractFileExt(name)='') then
begin
{ try default extensions .inc , .pp and .pas }
if (not found) then
found:=findincludefile(path,ChangeFileExt(name,'.inc'),foundfile);
if (not found) then
found:=findincludefile(path,ChangeFileExt(name,sourceext),foundfile);
if (not found) then
found:=findincludefile(path,ChangeFileExt(name,pasext),foundfile);
end;
=== code end ===
Steps to reproduce:
Run test.pas on the bug file and include settings.inc in the same directory.
Mantis conversion info:
- Mantis ID: 36181
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43227 (#a9340e72)
- Target version: 3.2.0