preprocessor: don’t need compiler argument to dynare when using octave. closes #1314

issue#70
Houtan Bastani 2016-10-14 17:35:10 +02:00
parent 61b2be2a2c
commit 7b0817a25e
1 changed files with 5 additions and 1 deletions

View File

@ -756,7 +756,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo
// MATLAB/Windows + MinGW g++
mOutputFile << "dyn_mex('mingw', '" << basename << "', " << !check_model_changes << ")" << endl;
else
mOutputFile << " error('When using the USE_DLL option, you must give the ''cygwin'', ''msvc'', or ''mingw'' option to the ''dynare'' command')" << endl;
mOutputFile << "if isoctave" << endl
<< " dyn_mex('', '" << basename << "', " << !check_model_changes << ")" << endl
<< "else" << endl
<< " error('When using the USE_DLL option on Matlab, you must give the ''cygwin'', ''msvc'', or ''mingw'' option to the ''dynare'' command')" << endl
<< "end" << endl;
#else
// other configurations
mOutputFile << "dyn_mex('', '" << basename << "', " << !check_model_changes << ")" << endl;