[fpc-pascal] synapse + ssl on linux ,how to use libc

Marco van de Voort marcov at stack.nl
Tue Oct 22 12:45:24 CEST 2013


In our previous episode, Sven Barth said:
> > Any comments are appreciated.
> It's very unlikely that you'll need the *unit* libc. That is deprecated, 
> exists only for Kylix compatibility and only on i386-linux. What will be 
> the case however is that it will the libc *library*. You can link to 
> that by e.g. specifying {$linklib c}.


some additions:

1. better use an unit that uses libc, like initc, that abstracts the exact
name of libc, making it easier to fix for BeOS/Haiku and embedded targets

2. The wikipedia article in the wiki has some pointers what to replace libc
with. Directly declaring prototypes for libc is the least desirable solution
(after using unit libc).

http://wiki.freepascal.org/libc_unit

3. I thought recent synapses fixed this?




More information about the fpc-pascal mailing list