[fpc-pascal] FPC 2.4.1 with library that requires old libc unit.
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Apr 23 10:22:30 CEST 2010
On 23 Apr 2010, at 09:45, Graeme Geldenhuys wrote:
> 1) First I had the problem that FPC couldn't find 'Libc' unit used
> in the
> uses clause. No idea why - maybe Libc unit is only 32bit?
Yes, it is.
> 2) This got me a bit further, to the code shown below. Is there a
> baseunix
> equivalent to Libc.mblen()?
No, there is not. You have to manually import it from the C library.
You can look at rtl/unix/cwstring.pp to see the declaration of this
function for various platforms (note that it's mbrlen() in most cases
-- that one is preferable to mblen() because mblen() is not thread-
safe).
Jonas
More information about the fpc-pascal
mailing list