MATLAB Answers

Why doesn't Matlab find my Intel Visual Fortran compiler?

6 views (last 30 days)
Bruce Elliott
Bruce Elliott on 10 Jun 2016
Commented: Bruce Elliott on 14 Jun 2016
I submitted a post about this to the newsgroup but have not received any responses thus far.
I have Intel Parallel Studio 2013 XE with VS2010, including Intel Visual Fortran, installed on my laptop running Windows 7. The compiler runs fine from within Visual Studio, but when I try to use it to compile a Mex file, I get the error
Error using mex
No supported compiler or SDK was found. (etc.)
The Windows environment variable IFORT_COMPILER14 is defined and points to the folder C:\Program Files (x86)\Intel\Composer XE 2013 SP1\. I also have the files
  • intel_fortran_13_vs2010.xml
  • intelf13msvs2010engmatopts.bat
  • intelf13msvs2010opts.bat
  • intelf13msvs2010opts.stp
in %matlabroot\bin\win64\mexopts\, but I don't know how to trouble-shoot them.
What does Matlab do to find an installed compiler? Can I manually check for anything that Matlab is looking for?
I get this error running both R2015b and R2016a.


Geoff Hayes
Geoff Hayes on 11 Jun 2016
Bruce - try turning on verbosity when setting up mex as
>> mex -setup -v
This may give you an idea as to the step that MATLAB is following when looking for your compiler.
By the way, have you verified that this is a supported compiler for your versions of MATLAB?
Bruce Elliott
Bruce Elliott on 14 Jun 2016
Geoff - Thanks - Someone where I work also suggested the -v flag (which I'd overlooked somehow), and it was helpful. It looks like my installation of Visual Studio might be corrupt in some way, so I'm uninstalling and reinstalling it to see if that helps.
And yes - I took the presence of the files in the bin\win64\mexopts\ that referred to my compiler to mean that it is supported by this version. Also, the verbose output from the mex command indicated that it would be happy to setup the compiler if it could only find the files and registry entries that it was looking for.

Sign in to comment.

Answers (0)


Translated by