[Lazarus] Default uses clause in project unit

Vincent Snijders vsnijders at vodafonevast.nl
Fri Aug 28 23:05:07 CEST 2009


waldo kitty schreef:
> Vincent Snijders wrote:
>> 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).
>
>
> ummm... how am i or anyone else to know that it should not be added by 
> default??
>

Maybe because the default template does not add by default?

Vincent




More information about the Lazarus mailing list