since this is from a c library you should define {$packrecords c} on
the unit with this code.

type
 BIGNUM = bignum_st;

 PBIGNUM = ^bignum_st;

 bignum_st = record
   d: PBN_ULONG;
   top: cint;
   dmax: cint;
   neg: cint;
   flags: cint;
 end;

 TBN_bn2hex = function (const a: PBIGNUM): PChar; cdecl;

 As you can see this code won't compile, you need to also find the
declaration of BN_ULONG and define it. Also put ctypes on the uses
clause.

--
Felipe Monteiro de Carvalho
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to