Peter Gerwinski wrote:
Nathalie Jarosz wrote:
You can call C version just fine (take look on GPM library and gmp.pas to see how pascal wrappers for C library can be written).
Where can I find gpm library?
A GPM unit is part of the GPC distribution. On my system if I type
I think you're talking about gmp, not gpm (typed correctly 1 and false 3 times ;-).
GMP (GNU Multi Precision) is a library for arithmetic with arbitrary precision. GPM is a library for text mode mouse handling under Linux (what does it stand for actually? M is for mouse, I guess)...
gpc -v
I get the information:
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.1/specs gpc version 20000619, based on 2.95.1 19990816 (release)
From this I read that can find the units in
Only if you know something about the directory structure used by GPC, and a default installation is used. In general, `gpc --print-file-name=units' will print the unit directory if GPC can find it at all.
If you have another C library that exports the beta distribution function you can use it the same way by writing a unit.
OTOH, most of the routines in nrpas are fairly short, so it might be easier to translate them to Pascal than to link the C routines.
Frank