<font face="verdana,sans-serif">Thanks for the awnser, Sven, but, my question is why not only use<br>{$ifdef unix}<br>cthreads<br>{$endif}<br>and i didn´t understand yet...<br><br><br clear="all"></font><font face="verdana, sans-serif">________________________________<br>

William de Oliveira Ferreira<br>Bacharel em Sistemas de Informação</font><br>
<br><br><div class="gmail_quote">2011/11/25 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Am 25.11.2011 11:17, schrieb William Oliveira Ferreira:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why should set $define usecthreads? only $ifdef linux doesn´t solve the<br>
issue?<br>
</blockquote>
<br></div>
The default projects of Lazarus contain the following code:<br>
<br>
uses<br>
  {$ifdef unix}{$ifdef usecthreads}<br>
  cthreads,<br>
  {$endif}{$endif}<br>
  ...<br>
<br>
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).<br>


<br>
Regards,<br>
Sven<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
______________________________<u></u>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br>
</div></div></blockquote></div><br>