Allin,


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


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")

Thank you very much!

Henrique

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

On Thu, 3 Sep 2009, Henrique wrote:

> By default, Ox is installed at:
>
> /Applications/OxMetrics5/ox/bin/oxl

Thanks, Henrique.  The current gretl snapshot for OS X on Intel,

http://ricardo.ecn.wfu.edu/pub/gretl/gretl.dmg

has Ox support compiled in.  To activate this support you have to
start gretl, go to the /Tools/Preferences/General dialog and
check the box "Enable Ox support", then re-start the program.

Then, under /Tools/Preferences/General/Programs you should find an
item, "Path to oxl executable".  The default should be OK (because
I copied it from your posting above!), but if it's not, then
correct it.

Then you should be good to go.

Allin.
_______________________________________________
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