mex -setup Fortran
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Xin Tan
el 22 de Jul. de 2019
Comentada: Xin Tan
el 26 de Jul. de 2019
I am using Matlab on Mac and trying to compile some FORTRAN functions. I have installed gcc via brew install, and I have also found the gfortran file on /usr/local/bin/gfortran, but I when I run mex -setup FORTRAN, I always get the following error:
Error using mex
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
How shall I properly setup FORTRAN for mex on a Mac?
0 comentarios
Respuesta aceptada
jg614
el 26 de Jul. de 2019
MathWorks has disabled ("dropped support for") gfortran as a MEX compiler on Mac since R2015b, when the Intel Fortran compiler began to be supported.
To do this the supported way, you'll have to use a combination of the Intel Fortran compiler and Microsoft Visual Studio. Valid combinations are listed in the R2019a supported compilers document.
To do this the free way, you'll have to modify the MEX configuration XML files. See this discussion on how to do this.
Más respuestas (0)
Ver también
Categorías
Más información sobre Fortran with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!