From bf99443ecfb19144b60d44e1ecd1e99a9b901e06 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 3 Sep 2009 16:34:15 +0000 Subject: [PATCH] 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 --- ModFile.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ModFile.cc b/ModFile.cc index b0e3e2e6..cadb916d 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -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;