Now I'm testing Ox support using the Example 28.1 of the User's Guide and I'm getting the following output (beginning is omitted):

(...)

? foreign language=Ox
#include <oxstd.h>
#import <packages/dpd/dpd>
? main ()
? {
? decl dpd = new DPD();
? dpd.Load("abdata.csv");
? dpd.SetYear("YEAR");
? dpd.Select(Y_VAR, {"n", 0, 2});
? dpd.Select(X_VAR, {"w", 0, 1, "k", 0, 0, "ys", 0, 1});
? dpd.Select(I_VAR, {"w", 0, 1, "k", 0, 0, "ys", 0, 1});
? dpd.Gmm("n", 2, 99); // GMM-type instrument
? dpd.SetDummies(D_CONSTANT + D_TIME);
? dpd.SetTest(2, 2); // Sargan, AR 1-2 tests
? dpd.Estimate(); // 1-step estimation
? decl parm = dpd.GetPar();
? gretl_export(parm, "oxparm.mat");
? delete dpd;
? }
? end foreign
/Applications/OxMetrics5/ox/bin/oxl exited with status 256
Ox Console version 5.10 (OS_X) (C) J.A. Doornik, 1994-2008
This version may be used for academic research and teaching only
/Users/henrique/.gretl/gretltmp.ox (3): 'packages/dpd/dpd.h' include file not found
/Users/henrique/.gretl/gretltmp.ox (6): 'DPD' undeclared identifier
/Users/henrique/.gretl/gretltmp.ox (6): class expected
/Users/henrique/.gretl/gretltmp.ox (9): 'Y_VAR' undeclared identifier
/Users/henrique/.gretl/gretltmp.ox (10): 'X_VAR' undeclared identifier
/Users/henrique/.gretl/gretltmp.ox (11): 'I_VAR' undeclared identifier
/Users/henrique/.gretl/gretltmp.ox (13): 'D_CONSTANT' undeclared identifier
/Users/henrique/.gretl/gretltmp.ox (13): 'D_TIME' undeclared identifier

Error executing script: halting
> end foreign

What can I do to fix this error?

Best,
Henrique

2009/9/3 Allin Cottrell <cottrell@wfu.edu>

On Thu, 3 Sep 2009, Henrique wrote:

> I'd tested the following script (from "Gretl User’s Guide") and it worked
> fine.

Thanks, glad to hear it!

> open data4-1
> matrix m = { dataset }
> mwrite(m, "@dotdir/gretl.mat")
> foreign language=Ox
> #include <oxstd.h>
> main()
> {
>     decl gmat = gretl_loadmat("gretl.mat");
> }
> end foreign
> matrix gretl = mread("/Users/henrique/.gretl/gretl.mat")


_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users



--
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge