I am attempting to use mex to compile C++ files in Matlab, but I can't even get that far. I am running R2012b in Ubuntu 12.04.
When I try to use mex, I always get "Error using mex (line 206) Unable to complete successfully." This occurs immediately, even when I run "mex -setup" or "mex -help".
Any ideas what could be causing this and how to fix it?
Without knowing what C++ compiler you are using or C++ files involved, it will be very difficult to say exactly why you are getting the error. The error message itself is very generic and I would suggest that you use some debugging means with mex.
mex -v filename.cpp
will allow you to get a more verbose display and determine exactly what error messages is your compiler giving you.
You also have to make sure you have formatted the files appropriately with the MEX wrapper notation that you can find within the help documentation of mex
Not even that works. Even "mex -v filename.cpp" produces the same error immediately with no more information.
It's not just a matter of the files I'm trying to compile, since I even "mex -help" gives the error.
Play games and win prizes!Learn more