Set fortran as compiler in Matlab_R2021a (in MacOS catalina 10.15.7)

조회 수: 13(최근 30일)
Mahsa Taheri
Mahsa Taheri 2021년 8월 28일
답변: Salman Ahmed 2021년 8월 31일
Hello
I would like to mex -setup fortran in my matlab but It always fails (I have Visual studio, x-code, and fortran on my mac installed) and I get the error :
Error using mex
Supported compiler not found. For options, visit
Once I type in terminal which gfortran, I get "/usr/local/bin/gfortran".
Can any one help me (I followed the link bellow steps but it still fails)?
  댓글 수: 2
Mahsa Taheri
Mahsa Taheri 2021년 8월 29일
Dear Walter Roberson
Thanks for the reply. I actually installed Intel Fortran Compiler Classic for macOS from here https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#fortran. But I can't still mex fortran from matlab. Could you please help me by some more details.
Sorry if my questions seems crazy, my knowledge from mac is almost zero.

댓글을 달려면 로그인하십시오.

답변(1개)

Salman Ahmed
Salman Ahmed 2021년 8월 31일
Hi Mahsa,
Make sure you have the right supported compiler for your OS : Supported Compilers
Hope it helps.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by