mex -setup doesn't find the compiler gfortran
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!