MATLAB: Mex -setp “Unable to complete successfully”

MATLAB Compilermex

I am trying to to use mex but I cannot make it work.
I have Matlab 2013a installed in a Ubuntu 12.04 (64 bit). I also have gcc 4.6.3 insatalled.
No matter what I try wiht mex, but I always get the same error with no information:
>> mex
Error using mex (line 206)
Unable to complete successfully.
>> mex -setup
Error using mex (line 206)
Unable to complete successfully.
>> mex test_function.cxx
Error using mex (line 206)
Unable to complete successfully.
Any ideas?

Best Answer

When you type ver on the command line, do you see the compiler listed?
Related Question