MATLAB: Unable to find cl.exe executing vl_compilenn

mexmingw64vlfeat

Hi,
I am trying to execute
vl_compilenn
from here, but I get this error:
Error using vl_compilenn>check_clpath (line 599)
Unable to find cl.exe
Error in vl_compilenn (line 417)
cl_path = fileparts(check_clpath()); % check whether cl.exe in path
I am using MinGW64 Compiler. I already read a potential fix could be adding the path to cl.exe to your environment variables, but how do I know where it's located? Am at a loss right now.

Best Answer

Reading the help section of a failing code is obligatory. In vl_compilenn you find:
% Compilation on Windows with MinGW compiler (the default mex compiler in
% Matlab) is not supported. For Windows, please reconfigure mex to use
% Visual Studio C/C++ compiler.
Install the SDK7.1, which is explained in many threads here in this forum.
Related Question