On Mon, 13 Mar 2006, Graeme Geldenhuys wrote:

Hi,

What does this error mean? Or rather how do I fix it?  I am compiling
my app under Linux (Ubuntu 5.10), but it is a cross platform app which
must compile under Windows as well.

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

This is the start of my program unit file.  I don't thing it ever
reaches the ctheads unit, though I am using pthreads in other parts of
my app.

-------------------------------------
program Browser;

{$mode objfpc}{$H+}

uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}

You don't need the {$ifdef UseCThreads}:

 {$IFDEF UNIX}
  cthreads,
 {$ENDIF}

should be enough.

 cthreads,
 {$ENDIF}{$ENDIF}
 Interfaces, // this includes the LCL widgetset
 Forms,
 MainForm,
 tiLog,
 tiLogReg,
 Login,
 tiOPFManager,
 tiQueryFBL,
 MozillaPluginPanelPackage;

<...snip...>
--------------------------------------------


Regards,
 - Graeme -

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to