[Lazarus] Converting console app to Lazarus on RPi - Indy10 not found

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jul 14 00:46:35 CEST 2016


On Thu, 14 Jul 2016 00:07:45 +0200
Bo Berglund <bo.berglund at gmail.com> wrote:

> On Wed, 13 Jul 2016 11:18:17 +0200, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>[...]
> I am using the Synopse PasZip unit to add zipping functionality to my
> program. When I moved it into Lazarus on an RPi3 I get the following
> error message:
> 
> PasZip.pas(60,3) Fatal: Cannot find LibC used by PasZip of the Project
> Inspector.

LibC was an ancient unit for Linux only. It vanished from FPC many years
ago.
Its functions are now in units like Unix, BaseUnix, etc to support
more platforms than Linux.

 
> This is the PasZip code that it complains about:
> 
> uses
> {$ifdef MSWINDOWS}
>   Windows,
> {$else}
>   LibC, <== Error here
>   Types,
> {$endif}
>   SysUtils;
> 
> When I google this it seems like there has been some problems earlier
> with LibC and Lazarus, but I did not find a working solution.
> 
> What to do?

Search the functions in FPC and use the new units.

Mattias


More information about the Lazarus mailing list