Lazarus

Programming => Packages and Libraries => LazUtils => Topic started by: Peterkl on September 29, 2015, 09:42:26 pm

Title: FileUtil not found
Post by: Peterkl on September 29, 2015, 09:42:26 pm
Hello guys,

I'm trying to write a simple command line program, I need to copy files, and I really want to use copyfile() ; which is in the "Filutil" unit.

The compiler cannot find the filutil unit which should included in the main package. I know I maybe have to update my fpc, but I do not know how to do it and I can't find guides on the internet.

Do you actually know how to solve this problem or how to update the fpc package ?

Thanks in advance  :)
Title: Re: FileUtil not found
Post by: GetMem on September 29, 2015, 10:08:24 pm
1. Menu-->Project-->Project Inspector-->Add-->New Requirement-->Package Name-->LazUtils-->Create New Requirement
2. Add fileutil to the uses caluses
Title: Re: FileUtil not found
Post by: Peterkl on September 29, 2015, 10:15:49 pm
Thank you so much m8, it worked like a charm,

Cheers :)