Michael Van Canneyt wrote:


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.


The is part of the Lazarus Application template for the lpr file..

Packages requiring threading can add -dUseCThreads to their Usages options, so that the cthreads unit will be added on unix.

Vincent.

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

Reply via email to