Multithreading on Linux -- "Recompile the application with a thread- driver"? lazarus / 8-Other ---------------------------------------------------------------------- Troodon · 2009-03-10 00:04 I keep getting this error message upon tryng to launch worker threads on Linux, despite including the cthreads and cmem units in the uses clause of the .lpr file as per http://wiki.lazarus.freepascal.org/Mult ithreaded_Application_Tutorial#Units_needed_for_a_multithreaded_applic ation Where else should I look? Thanks. Code: [Select]This binary has no thread support compiled in. Recompile the application with a thread-driver in the program uses clause before other units using thread. Runtime error 232 at... Code: [Select]program project2; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   cmem,   {$ENDIF}{$ENDIF}   Interfaces, // this includes the LCL widgetset   Forms   { you can add units after this }, {RNDGen,} Unit1, Printer4Lazarus, Unit2,   Unit3; {$R manifest.res} ---------------------------------------------------------------------- Leledumbo · 2009-03-10 05:03 Do you have UseCThreads defined (Usually in Project->Compiler Options->Other)? ---------------------------------------------------------------------- Troodon · 2009-03-10 16:17 Oops! I made the same mistake again, trying to enter that option in the Linking tab, Options (-k), that is why it didn't work. Thank you. ---------------------------------------------------------------------- Vincent Snijders · 2009-03-10 17:40 If I were you, I would just remove {$IFDEF UseCThreads} from the project source and compile the app unconditionally with the thread driver. The UseCThread is designed for package to notify the main program that is needs thread support. ---------------------------------------------------------------------- Troodon · 2009-03-14 05:11 Yes, that worked perfectly. Thank you! ---------------------------------------------------------------------- facom4ever · 2012-02-07 10:16 Hello, sorry to up this old topic. I have same problem on MacOSx cthreads is declared on lazarus.pp without condition When I use a component from Indy, I have this error232. I wrote on Project->Compiler Options->Other. Use fpc.cfg is checked On custom options I entered as said : UseCThreads But still 232 error If I declare cthreads in the project it is even worst. After compilation I have error 211... ---------------------------------------------------------------------- Leledumbo · 2012-02-07 14:20 QuoteOn custom options I entered as said : UseCThreadsIt should be -dUseCThreads ---------------------------------------------------------------------- TurboRascal · 2012-02-07 21:04 Why not simply remove {$IFDEF UseCThreads} directive? You obviously always need thread drivers compiled in this program when UNIX is defined...