Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: compiling mata from ado file
From
László Sándor <[email protected]>
To
[email protected]
Subject
st: compiling mata from ado file
Date
Wed, 16 May 2012 12:06:29 -0400
Hi all,
I am not sure why this does not work for me: Shouldn't ado files work
with a structure like this?
program define ...
...
mata: myfunction()
end
mata:
void function myfunction(...) {
...
}
mata mosave myfunction(), replace
end
exit
This way I got the error that the program does not find the Mata
function. (It works if I swap the order of the Stata and the Mata code
though, but that looks silly.)
My code runs fine if I precompile the Mata code and the ado only looks
for the .mo files. But I don't want to do that as I don't want version
control on the Mata code (newer versions will compile faster code,
no?).
Thanks for any thoughts,
Laszlo
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/