Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: compiling mata from ado file

From   László Sándor <>
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()
void function myfunction(...) {
mata mosave myfunction(), replace

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,

Thanks for any thoughts,

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index