[fpc-pascal] Compile library with Linux
florian at freepascal.org
Sun Feb 18 11:27:33 CET 2007
Michel Meunier schrieb:
> Florian Klaempfl a écrit :
>> Michel Meunier schrieb:
>>> My library under Windows is now OK, it use an UDP socket with the
>>> Synapse units (wonderful job).
>>> Now I want to compile it under Linux.
>>> The compilation is OK, but when I try to use the .so library, I get this
>>> 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 $B6A4418B
>>> I use a thread inside the code to survey the UDP socket, it's work very
>>> well with Windows, but do you know where is the problem with Linux?
> Well, do as the message say and add the cthreads unit. This is not done
> by default because it causes libc dependencies. Ok, if I understand, I
> have to add cthreads in the Uses part. But why can I compile a program
> witch use threads without any error when an unit is missing?
Because the threading interface is plugable and FPC provides a dummy
driver by default.
> Thanks a lot for your help.
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal