Fortran77のMEX化に関して

Fortran77ファイルをMEX化しようと考え、
mex 〇〇.f
とコマンドラインで入力したところ
サポートされているコンパイラまたは SDK が見つかりません。オプションについて は、 http://www.mathworks.com/support/compilers/R2016b/win64.html を参照してください。
とエラーが表示されました。これは、FortranのコンパイラをインストールしてMATLABに紐づけ?すればよいのでしょうか。

1 comentario

michio
michio el 14 de Jun. de 2018
URLをハイパーリンク化いたしました。

Iniciar sesión para comentar.

 Respuesta aceptada

michio
michio el 14 de Jun. de 2018

0 votos

おっしゃる通りです。使用されているMATLABバージョンで対応している Fortran コンパイラーをインストールし、MATLAB上で
mex -setup FORTRAN
と実行して頂ければ設定完了です。

3 comentarios

O.E
O.E el 14 de Jun. de 2018
回答ありがとうございます。 Gfortranの4.8.1をダウンロードしてインストールを実行しました。
mex -setup FORTRAN
をさっそく実行したのですが、同じエラーが表示されてしまいます。
cmd上で
gfortran --version
と実行すると
GNU Fortran (tdm64-2) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
と出力されているので、インストールには成功していると思うのですが
何が問題になっているのでしょうか。
GfortranのインストールパスはC:\TDM-GCC-64です。
michio
michio el 14 de Jun. de 2018
Gfortran は残念ながら対応しておりません。
にある通り、Fortranに関しては以下の3つが対応コンパイラとなります。
  • Intel Parallel Studio XE 2016 for Fortran 3
  • Intel Parallel Studio XE 2015 for Fortran 3
  • Intel Visual Fortran Composer XE 2013 3
O.E
O.E el 28 de Jun. de 2018
ありがとうございます。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Fortran からの MATLAB の呼び出し en Centro de ayuda y File Exchange.

Preguntada:

O.E
el 14 de Jun. de 2018

Comentada:

O.E
el 28 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!