[Lazarus] fileutil unit dependencies
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu May 27 16:01:38 CEST 2010
On Thu, 27 May 2010 15:47:46 +0200
Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:
> Why FileUtil unit uses LCL? There is a comment in the unit:
> // For Smart Linking: Do not use the LCL!
> I would like to use some functions included in FileUtil (e.g.
> ExtractFileNameOnly) also in a Console Application without LCL
> dependencies, is it possible?
Yes.
Add LCL as dependency in the project inspector and use the unit
FileUtil. The compiler is clever enough to only use the FileUtil unit.
Mattias
More information about the Lazarus
mailing list