Fortran Compiler Windows 10, 64bit, R2019a

14 ビュー (過去 30 日間)
Waldemar Nidens
Waldemar Nidens 2019 年 5 月 14 日
編集済み: Priyank Godhat 2020 年 5 月 13 日
Hello World,
my goal is to run some Fortran codes in Matlab. I found out that i need the mex function and some compiler.
So i download the MATLAB Support for MinGW-w64 C/C++ Compiler and installed him, but the fortran compiler dosen't work. C and C++ is running.
In the comments from the download link
https://de.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler
there are many other people whit the same problem.
Can anyone help me?
  3 件のコメント
Waldemar Nidens
Waldemar Nidens 2019 年 5 月 15 日
I use MATLAB 2019a. I only installed the MATLAB Support for MinGW-w64 C/C++ Compiler
Walter Roberson
Walter Roberson 2019 年 5 月 15 日
Mingw is not a Fortran compiler.
The only supported Fortran compilers for windows in r2019a are a couple of the Intel Parallel XE versions. Those are free for student use and otherwise expensive.
Some people manage to get g77 or gfortran working but they are not supported.

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

採用された回答

Waldemar Nidens
Waldemar Nidens 2019 年 5 月 15 日
After i installed the Intel Parallel XE 2019. How do i make that matlab recognizes that the installed compiler?
Thank you for your support and the quit answer Roberson:)
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 5 月 15 日
One point in the small print of the requirements for the Intel XE support is that you also need one of the VS compilers as a base: you cannot layer XE compilers on MinGW.
Once those layers are installed then I think it is
mex -v -setup fortran
Walter Roberson
Walter Roberson 2019 年 5 月 15 日
"Intel compilers require that Microsoft Visual Studio 2015 or 2017 also be installed on your system."

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

その他の回答 (1 件)

Waldemar Nidens
Waldemar Nidens 2019 年 5 月 20 日
Thanks Roberson,
after i installed Intel Parallel XE 2019 and Microsoft Visual Studio 2015 it works. One thing is still to be considered.
At the standard installation of Microsoft Visual Studio 2015 the compiler do not get install. the installation need to be choosen custom and than you click the compiler that you need.
  1 件のコメント
Priyank Godhat
Priyank Godhat 2020 年 5 月 13 日
編集済み: Priyank Godhat 2020 年 5 月 13 日
can you please elaborate the last sentence?

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

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by