Skip to content
Snippets Groups Projects
Commit c471a41f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

preprocessor: under Octave/Windows, with USE_DLL, do not require "cygwin" or...

preprocessor: under Octave/Windows, with USE_DLL, do not require "cygwin" or "msvc" option (closes #76)
parent e0e25fff
Branches
Tags
No related merge requests found
...@@ -314,10 +314,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all ...@@ -314,10 +314,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all
else if (cygwin) 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++ 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 else
{ mOutputFile << " error('When using the USE_DLL option, you must give either ''cygwin'' or ''msvc'' option to the ''dynare'' command')" << endl;
cerr << "ERROR: When using the USE_DLL option, you must give either 'cygwin' or 'msvc' option to the 'dynare' command" << endl;
exit(EXIT_FAILURE);
}
#else #else
# ifdef __linux__ # ifdef __linux__
mOutputFile << " eval('mex -O LDFLAGS=''-pthread -shared -Wl,--no-undefined'' " << basename << "_dynamic.c')" << endl; // MATLAB/Linux mOutputFile << " eval('mex -O LDFLAGS=''-pthread -shared -Wl,--no-undefined'' " << basename << "_dynamic.c')" << endl; // MATLAB/Linux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment