mex -setup doesn't find the compiler gfortran
Show older comments
I am having trouble using mex with Matlab. I am following these steps to try to use mex: http://www.mathworks.com/support/tech-notes/1600/1605.html#setup . Things go wrong with the very first step- the command mex -setup. This command is supposed to find all supported compilers (<http://www.mathworks.com/support/compilers/R2012a/glnxa64.html>) and let you select the one that mex should use in the future. When I run this command, Matlab does not find gfortran. I thought that it might be a path issue (see http://www.mathworks.com/matlabcentral/newsreader/view_thread/172171) I checked my gfortran location against the paths that Matlab checks for the compiler (by running the command getenv('PATH')). I also added the paths to my list of paths in startup.m to be extra sure. I also found that I was using a higher version of the gcc compiler than was supported by Matlab so I downgraded the compiler to the specific version of gfortran on the supported compilers list. None of these things solved the problem. Can you suggest anything? I am using the release R2011b.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with 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!