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-bf33cf982152
issue#70
sebastien 2009-09-03 16:34:15 +00:00
parent d26ff57671
commit bf99443ecf
1 changed files with 5 additions and 0 deletions

View File

@ -258,6 +258,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
mOutputFile << "options_.block=" << block << ";" << 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
if (block || byte_code)
mOutputFile << "delete('" << basename << "_dynamic.m');" << endl;