Thanks for the awnser, Sven, but, my question is why not only use
{$ifdef unix}
cthreads
{$endif}
and i didn´t understand yet...________________________________ William de Oliveira Ferreira Bacharel em Sistemas de Informação 2011/11/25 Sven Barth <[email protected]> > Am 25.11.2011 11:17, schrieb William Oliveira Ferreira: > > Why should set $define usecthreads? only $ifdef linux doesn´t solve the >> issue? >> > > The default projects of Lazarus contain the following code: > > uses > {$ifdef unix}{$ifdef usecthreads} > cthreads, > {$endif}{$endif} > ... > > The "cthreads" unit is the one that must be included for threading support > on Unix systems. Using a linux system merely satisfies the "ifdef unix" > condition, but you need to define "usecthreads" as well or remove the check > completely (you should leave the check for Unix though as the "cthreads" > unit is not available for e.g. Windows). > > Regards, > Sven > > > > -- > ______________________________**_________________ > Lazarus mailing list > [email protected].**freepascal.org<[email protected]> > http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus> >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
