Hi Frank, Hi GPC list,
I downloaded rand.pas file on agnes as adviced by GPC Guru, and this one does not pass through the gpc --automake trial.
Don't you think this part of code (line 113)
PROCEDURE SRand(Seed:Cardinal); C; FUNCTION GetPID:Integer; C;
should be thus written:
PROCEDURE SRand(Seed:cardinal); C; FUNCTION GetPID:cardinal; C;
?
Indeed, the all-cardinal solution does work fine (as cardinal being a c long int, one should also put integer everywhere, which also works).
I think that previous version of GPC did not encounter problem there but that more recent one (mine is eventually 971001(2.7.2.1)) cannot compile because of incompatible, though not that much, argument type.
Regards.
F.P.L