[Lazarus] Default uses clause in project unit

waldo kitty wkitty42 at windstream.net
Fri Aug 28 05:37:49 CEST 2009


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??

i'm still learning Laz/FPC (on winX environment and trying to compile for OS/2 
environment as well) ...




More information about the Lazarus mailing list