<div dir="ltr">From <a href="http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial">here</a>:<br><br>Units needed for a multithreaded application<br><br>You donīt need any special unit for this to work with Windows. However with Linux, <b>Mac OS X</b> and FreeBSD, you need the cthreads unit and it must be the first used unit of the project (the program unit, .lpr)!<br>
<br>So, your Lazarus application code should look like: <br><br> program MyMultiThreadedProgram;<br> {$mode objfpc}{$H+}<br> uses<br> {$ifdef unix}<br>   cthreads,<br> {$endif}<br>   Interfaces, // this includes the LCL widgetset<br>
   Forms<br>   { add your units here },<br><br><br>I am assuming that the $ifdef unix doesn't return true for Mac OS X, but I am sure there is one that checks if it's a Mac...<br><br>Regards,<br>-Reenen<br><br><br>
On Fri, Sep 5, 2008 at 8:17 AM, Roland Turcan <<a href="mailto:konf@rotursoft.sk">konf@rotursoft.sk</a>> wrote:<br>> Hello lazarus project!<br>><br>> I added some components into package which have some threads inside,<br>
> but after building lazarus, lazarus shows the message:<br>><br>>> This binary has no thread support compiled in.<br>>> Recompile the application with a thread-driver in the program uses<br>>> clause before other units using thread.<br>
><br>> But where to put into package thread support?<br>><br>> Thanks.<br>><br>> --<br>> Best regards, TRoland<br>> <a href="http://www.rotursoft.sk">http://www.rotursoft.sk</a><br>> <a href="http://exekutor.rotursoft.sk">http://exekutor.rotursoft.sk</a><br>
><br>> _______________________________________________<br>> Lazarus mailing list<br>> <a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>> <a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
><br><br><br><br>-- <br>o__<br>,_.>/ _<br>(_)_\(_)_______<br>...speed is good<br>_______________<br>I believe five out of four people have a problem with fractions.<br><br></div>