Set fortran as compiler in Matlab_R2021a (in MacOS catalina 10.15.7)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 28 Aug. 2021
Intel Parallel Studios is the only supported Fortran for MacOS.
You saw in that Answer how much trouble I had getting gfortran to work for MacOS. I never did manage to get it to actually run a fortran shared object successfully.
I would recommend using Intel Parallel Studios.
Antworten (1)
Salman Ahmed
am 31 Aug. 2021
Hi Mahsa,
Make sure you have the right supported compiler for your OS : Supported Compilers
Try using Intel Parallel Studio XE 2020: Installation Guide for Intel Parallel Studio XE 2020 for macOS
Hope it helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!