Re: [Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread GOO Creations
Hi Allin, Thanks for the example program. I've fixed the reference errors (have send an email 5min ago). On a different note. I'm new to gretl and still struggeling to figure out how to work with DATASET. I have a double array with my time series samples. I want to create a DATASET directly

Re: [Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread GOO Creations
Hi again, Found a solution. Seems you have to specifically specify that the forecast functions are C (when compiling with a C++ compiler). Added this to the top of my file: /extern "C"// //{// //void free_fit_resid (FITRESID *fr);// //FITRESID *get_fit_resid (const

Re: [Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread Allin Cottrell
On Sat, 29 Mar 2014, GOO Creations wrote: > Thanks for the example program. I've fixed the reference errors (have send an > email 5min ago). > > On a different note. I'm new to gretl and still struggeling to figure out how > to work with DATASET. I have a double array with my time series

Re: [Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread Allin Cottrell
On Sat, 29 Mar 2014, GOO Creations wrote: > Hi again, > > Found a solution. Seems you have to specifically specify that the forecast > functions are C (when compiling with a C++ compiler). Ah, OK. In CVS I've now wrapped forecast.h in extern "C" {} conditional on C++ compilation (libgretl.h

Re: [Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread Allin Cottrell
On Sat, 29 Mar 2014, GOO Creations wrote: > I'm trying to estimate the parameters for an ARMA model and then forecast the > next value. I've linked the library (libgretl-1.0) to my program and am able > to create datasets and estimate the ARMA model. I'm however unable to use the > forecast

[Gretl-users] Gretl forecast - undefined reference

2014-03-29 Thread GOO Creations
Hi, I'm trying to estimate the parameters for an ARMA model and then forecast the next value. I've linked the library (libgretl-1.0) to my program and am able to create datasets and estimate the ARMA model. I'm however unable to use the forecast code. I've noticed that forecast.h is not