From c471a41feff4284dfb7376b8c365fb5ec8fd0a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 17 Feb 2010 13:14:43 +0100 Subject: [PATCH] preprocessor: under Octave/Windows, with USE_DLL, do not require "cygwin" or "msvc" option (closes #76) --- ModFile.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 74016ef1..50473db7 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -314,10 +314,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all else if (cygwin) mOutputFile << " eval('mex -O PRELINK_CMDS1=\"echo EXPORTS > mex.def & echo mexFunction >> mex.def & echo Dynamic >> mex.def\" " << basename << "_dynamic.c')" << endl; // MATLAB/Windows + Cygwin g++ else - { - cerr << "ERROR: When using the USE_DLL option, you must give either 'cygwin' or 'msvc' option to the 'dynare' command" << endl; - exit(EXIT_FAILURE); - } + mOutputFile << " error('When using the USE_DLL option, you must give either ''cygwin'' or ''msvc'' option to the ''dynare'' command')" << endl; #else # ifdef __linux__ mOutputFile << " eval('mex -O LDFLAGS=''-pthread -shared -Wl,--no-undefined'' " << basename << "_dynamic.c')" << endl; // MATLAB/Linux