[fpc-devel] how to get same pthreads code to compile between Linux and FreeBSD

Sven Barth pascaldragon at googlemail.com
Sun Feb 3 20:12:13 CET 2013


On 03.02.2013 19:40, Graeme Geldenhuys wrote:
>> Did at least the solution help you? AFAIK it should work for FreeBSD as
>> well as Linux (and maybe the other *nix systems...)
>
> [After my reply to Marco, I tried your solution]
>
> Yes, that did work - thanks. I have never seen those {$....} you
> mentioned, but will read the FPC docs now to find out more.

I can suggest you to read 
http://www.freepascal.org/docs-html/prog/progch1.html#x5-40001 if you've 
not already found it. :)
The 2.6.0 documentation is not completely up to date regarding the 
directives, but the 2.6.2 one will be (see 
http://bugs.freepascal.org/view.php?id=21303 ).

Regards,
Sven



More information about the fpc-devel mailing list