Unable to run vl_compilenn

1 view (last 30 days)
priya goel
priya goel on 22 Aug 2016
Answered: Amar Nageswarao on 10 Aug 2018
I want to use matconvnet for my University work but I am unable to run vl_compilenn file in MATLAB. It gives me the following error. I tried installing Visual Studio C++ but MATLAB does not recognise it as a compatible compiler. Any help would be much appreciated.
1. run vl_compilenn
i am getting following error-
Warning: CL.EXE not found in PATH. Trying to guess out of mex setup.
> In vl_compilenn>check_clpath (line 566)
In vl_compilenn (line 400)
In run (line 96)
'cl.exe' is not recognized as an internal or external command,
operable program or batch file.
Error using vl_compilenn>check_clpath (line 577)
Unable to find cl.exe
Error in vl_compilenn (line 400)
check_clpath(); % check whether cl.exe in path
Error in run (line 96)
evalin('caller', [script ';']);
2. I have installed visual studio c++ on my computer, but matlab is not detecting it, it keeps on detecting mingw.
>> mex -setup c
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
>> mex -setup cpp
MEX configured to use 'MinGW64 Compiler (C++)' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
>> mex -setup
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
MEX configured to use 'MinGW64 Compiler (C++)' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

Answers (3)

Walter Roberson
Walter Roberson on 22 Aug 2016
Which Video Studio C++ edition are you trying to install, and which MATLAB are you trying to use? MATLAB has no supported the Express editions of VS since roughly R2012a (I would need to double-check the exact release.)

priya goel
priya goel on 22 Aug 2016
hello , i am using microsoft visual studio 12 , and matlab R2015b
  4 Comments
yangyang bai
yangyang bai on 12 Sep 2016
same problem....is there any way to fix this without installing the professional version?right now i have vs2015 community and matlab2015b and matlab2014a...
Walter Roberson
Walter Roberson on 12 Sep 2016
I do not know. However, you can use SDK 7.1 for R2015b (though you might have difficulty with that on Windows 10.)

Sign in to comment.


Amar Nageswarao
Amar Nageswarao on 10 Aug 2018
While installing visual C++,install it in custom mode and select programming languages.

Community Treasure Hunt

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

Start Hunting!