On Thu, 17 Jun 2010, denis joubert wrote:
Moving to gretl-devel
because i found what is going on :
in .h of libgretl i got this:
MODEL lad(const int*, double***, DATAINFO*)
but in lad.c module :
int lad_driver (MODEL *pmod, double **Z, DATAINFO *pdinfo)
That's not a problem. The lad() function needs the address of Z,
(named pZ) in order to do an initial OLS. It then dereferences pZ
and passes Z (of type double **) to lad_driver().
The trouble, I think, is just that gretl_rand_init() never got
called, because your program didn't do libgretl_init() on startup.
Note that you should also probably do libgretl_cleanup() when
you're finished with libgretl.