Added error message if bytecode option specified but no bytecode DLL found
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2896 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
d26ff57671
commit
bf99443ecf
|
@ -258,6 +258,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
|
||||||
mOutputFile << "options_.block=" << block << ";" << endl
|
mOutputFile << "options_.block=" << block << ";" << endl
|
||||||
<< "options_.bytecode=" << byte_code << ";" << endl;
|
<< "options_.bytecode=" << byte_code << ";" << endl;
|
||||||
|
|
||||||
|
if (byte_code)
|
||||||
|
mOutputFile << "if exist('bytecode') ~= 3" << endl
|
||||||
|
<< " error('DYNARE: Can''t find bytecode DLL. Please compile it or remove the ''bytecode'' option.')" << endl
|
||||||
|
<< "end" << endl;
|
||||||
|
|
||||||
// Erase possible remnants of previous runs
|
// Erase possible remnants of previous runs
|
||||||
if (block || byte_code)
|
if (block || byte_code)
|
||||||
mOutputFile << "delete('" << basename << "_dynamic.m');" << endl;
|
mOutputFile << "delete('" << basename << "_dynamic.m');" << endl;
|
||||||
|
|
Loading…
Reference in New Issue