I need to setup my mex command to find the correct fortran compiler
8 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to duplicate the matlab example of compiling fortran code using mex command: >> mex -R2018a timestwoCL.F.
I get the following error:
Error using mex
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
I'm a 2019 visual studio user and my compiler is supported per the above link (Intel 2020 parallel studio) and is located at C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020\windows\bin\intel64\ifort.exe.
How do I set my mex command to use this compiler?
configuration info:
MATLAB Version: 9.6.0.1072779 (R2019a)
MATLAB License Number: 41042005
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19042)
Java Version: Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
3 件のコメント
dpb
2022 年 7 月 12 日
I'd forgotten just what TMW had done to the setup script stuff -- I recalled <omment_585625> almost two years ago now that were looking into trying to figure out the setup to be able to use gfortran -- and the setup files are now XML.
That TMW makes all of this as opaque and obtuse as possible is just infuriating -- they should just provide the needed compiler and link options required to build a mex object file and let the user choose the compiler of choice and build it with the toolset of choice.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!