mex -setp "Unable to complete successfully"
Show older comments
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?
3 Comments
Chandrasekhar
on 17 Apr 2014
i guess there is not matlab compiler
Ken Atwell
on 17 Apr 2014
Can you invoke gcc directly from MATLAB:
>> !gcc
Juan
on 17 Apr 2014
Accepted Answer
More Answers (1)
Harsheel
on 17 Apr 2014
1 vote
No, you do not need MATLAB Compiler product to use the MEX function. If ">>mex -setup" is erroring out exactly the way you've mentioned above then that means your GCC may be wrongly installed on the system.
By the way, you need gcc 4.4.x, as gcc 4.6.3 is unsupported with R2013a. So first, install the correct version and make sure it's installed correctly by executing ">>!gcc --version" from inside MATLAB. If it shows the correct version then, try executing ">>mex -setup".
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!