Fortran mex with Intel compiler not working on r2022a

5 ビュー (過去 30 日間)
Elizabeth Wong
Elizabeth Wong 2022 年 8 月 25 日
コメント済み: Walter Roberson 2023 年 10 月 4 日
This is on macOS. Since updating to r2022, I've been getting the following issue when running a newly-compiled Fortran mex-file. The mex-file compiles correctly from what I can see using Intel ifort and mex, but when I run it in Matlab, I get the error below.
It seems like there is a diffrerence in libifcore.dylib included in Matlab and the one with the Intel compiler. The symbol _for_getenv_err exists in the libifcore.dylib that comes with the Intel compiler. Does anyone have any suggestions?
Invalid MEX-file '***.mexmaci64': dlopen(***.mexmaci64, 6): Symbol not found: _for_getenv_err
Referenced from: ***.mexmaci64
Expected in: /Applications/MATLAB_R2022a.app/bin/maci64/../../sys/os/maci64/libifcore.dylib
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 4 日
Which Intel Fortran was being w? In that release only Intel Parallel Studios Fortran 2019 and 2020 were supported.

サインインしてコメントする。

回答 (1 件)

Maneet Kaur Bagga
Maneet Kaur Bagga 2023 年 10 月 4 日
Hi Elizabeth,
As per my understanding suggests that there is a symbol missing in the libifcore.dylib library that is required by your Fortran mex-file. The error encountered is because MATLAB R2022a does not supports Gfortran for Mac OS.
Please refer to the following documentation to refer to the Supported and Compatible Compilers:
For a similar error please refer to the following MATLAB Answer:
Hope this helps!
Regards,
Maneet Bagga

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by