[Lazarus] Default uses clause in project unit

Vincent Snijders vsnijders at vodafonevast.nl
Wed Aug 26 15:59:02 CEST 2009


Graeme Geldenhuys schreef:
> Hi,
> 
> When you create a new project in Lazarus, the default uses classe in the
> *.lpr file looks as follows:
> 
> ---------------
> uses
>   {$IFDEF UNIX}{$IFDEF UseCThreads}
>   cthreads,
>   {$ENDIF}{$ENDIF}
>   Classes;
> ---------------
> 
> 
> Is there an alternative implementation of multi-threading support for
> Unix-type systems -- other than the cthreads unit?
> 
> If not, then why do we have the extra "IFDEF UseCThreads" define in the
> uses clause?
> 

So, it won't be added by default. Don't add it, if you don't need it (or any or you 
required packages).

Vincent




More information about the Lazarus mailing list