[fpc-pascal] Why is cthreads unit not included by default

Michael Van Canneyt michael at freepascal.org
Thu Aug 27 12:42:25 CEST 2009

On Thu, 27 Aug 2009, Graeme Geldenhuys wrote:

> Michael Van Canneyt wrote:
>>> Why is threading enabled by default under Windows and not under other
>>> platforms?
>> Because it creates a dependency on the C library, which
>> is not always wanted. For Lazarus programs, the dependency exists
>> anyway, so it does not make a lot of sense to have the define.
> But surely that c library is available on all unix-type systems? To why
> is that dependency a bad thing?

Because I want a FPC program to depend only on the Linux kernel, 
not on the C library.

There are FPC programs from 8 years back that still work with the current 
kernel. Try that with a program that depends on the C library.


More information about the fpc-pascal mailing list