I can not find the fortran compiler

7 ビュー (過去 30 日間)
Ahmed El-Ghandour
Ahmed El-Ghandour 2011 年 12 月 15 日
Hey guys, I am trying to work on MEX file..so i am starting with following the MEX_files Guide to learn step by step.
I followed the "Mex -setup" step and I have Intel fortran on my computer ( MIcrosoft visual studio 2008 )
but when I am trying the example given : mex yprimef.f I get the following error:
Error: Could not find the compiler "ifort" on the DOS path.
Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mex at 208 Unable to complete successfully.
so can someone tell me what could be my error.
P.s. I chose Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) when I have the list of compiler.
thanks alot
Ghandour
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2011 年 12 月 15 日
Did "mex -setup" find your compiler automatically, or did you manually specify the path? Also, make sure that Fortran 11.1 is supported with your version of MATLAB: http://www.mathworks.com/support/compilers/previous_releases.html

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

採用された回答

Ora Zyto
Ora Zyto 2011 年 12 月 16 日
Ghandour,
mex -setup is looking at your system environment variables and your path to find the compiler. With your setup, you need to have the following environment variable: IFORT_COMPILER11 set on your machine, pointing to the top directory of your Intel Fortran compiler.
  2 件のコメント
Ahmed El-Ghandour
Ahmed El-Ghandour 2011 年 12 月 19 日
ok I got it. and it is working now
thanks a lot :)
but I will need your help later when i start buliding my code for sure
have a great day
Ghandour
Ahmed El-Ghandour
Ahmed El-Ghandour 2011 年 12 月 19 日
Actually I need another help. I need to get the fintrf.h to be added in my library in fortran...but I can not find it online. do u have a direct link where I can download it ?
thanks
Ghandour

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by