Unable to run vl_compilenn
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (3)
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.)
0 Comments
priya goel
on 22 Aug 2016
4 Comments
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
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.)
Amar Nageswarao
on 10 Aug 2018
While installing visual C++,install it in custom mode and select programming languages.
0 Comments
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!