Hi,
I recently installed Lazarus on my kubuntu 24.04 system. I installed it via fpcupdeluxe.
Working on my application I wanted to use some file-utilities. It seems they are not present. I wanted to use ExtractFileNameOnly, so I included the FileUtil unit (following the wiki-page :
https://wiki.freepascal.org/fileutil). But when I compile or build, I get an error :
frmmain.pas(72,13) Error: Identifier not found "ExtractFilenameOnly" Where should that function be located ? I grepped and I found some files that contain the function-declaration :
./fpcsrc/packages/fcl-passrc/src/pscanner.pp:Function ExtractFilenameOnly(Const AFileName : String) : String; ./fpcsrc/packages/fcl-passrc/src/pscanner.pp:Function ExtractFilenameOnly(Const AFileName : String) : String; ./fpcsrc/packages/pastojs/src/pas2jsfileutils.pp:function ExtractFilenameOnly(const aFilename: string): string; ./fpcsrc/packages/pastojs/src/pas2jsfileutils.pp:function ExtractFilenameOnly(const aFilename: string): string;
That's so for the gtk2, qt5 and qt6 versions of fpcupdeluxe. Any help ?
TIA,
Koenraad
