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

Provide a meaningful error message when 'use_dll' option is used without 'matlabroot'

parent 7e1563fd
Branches
No related tags found
No related merge requests found
......@@ -1978,6 +1978,12 @@ ModelTree::compileMEX(const string &basename, const string &funcname, const stri
ostringstream flags;
string libs;
if (matlabroot.empty())
{
cerr << "ERROR: 'matlabroot' option to preprocessor is not set, needed with 'use_dll'" << endl;
exit(EXIT_FAILURE);
}
if (mexext == "mex")
{
// Octave
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment