fortran compiler not detected
13 次查看(过去 30 天)
显示 更早的评论
Hello,
It seems a classical problem:
>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2019 (C)' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
>> mex -setup FORTRAN
Error using mex
Supported compiler not detected. For options, visit https://www.mathworks.com/support/compilers.
I have installed Intel oneAPI 2023 for Fortran and Microsoft Visual Studio 2019. During the installation a msg from Intel tells me that Desktop development with C++ was missing. Conseqently I have added this component using the Visual Studio Installer as explained.
here is my matlab installation
MATLAB Version: 9.14.0.2206163 (R2023a)
MATLAB License Number: STUDENT
Operating System: Microsoft Windows 10 Professionnel pour les Stations de travail Version 10.0 (Build 19044)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Many thanks for your help
2 个评论
回答(1 个)
Keshav
2023-4-13
Hi Alain,
I understand that you are getting an error “Error using mex: Supported compiler not detected” while using the command “mex -setup FORTRAN” and you have already installed Intel oneAPI 2023 for Fortran and Microsoft Visual Studio 2019.
Try to run the below command in the MATLAB command window.
mex -v -setup fortran
This command will give you the proper reason behind the compiler not found error. From there you can do the needful.
5 个评论
Walter Roberson
2023-4-15
I suggest reinstalling the Fortran component, then exit matlab and re-enter matlab and try again
另请参阅
类别
在 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!