preprocessor: under Octave/Windows, with USE_DLL, do not require "cygwin" or "msvc" option (closes #76)

issue#70
Sébastien Villemot 2010-02-17 13:14:43 +01:00
parent e0e25fff7d
commit c471a41fef
1 changed files with 1 additions and 4 deletions

View File

@ -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