Unable to find cl.exe executing vl_compilenn
Ältere Kommentare anzeigen
Hi,
I am trying to execute
vl_compilenn
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.
Akzeptierte Antwort
Weitere Antworten (1)
Mohamed aymane Zizi
am 19 Jan. 2020
The solution I figured out is hardcoding the path link.
in vl_compilenn.m file you find the line
cl_path = fullfile(cc.Location, 'VC', 'bin', 'amd64');
so basically you changed accordinally to where cl.exe is located, in my case I changed it to this.
cl_path = 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64';
and worked perfectly!
wish that helps you!
1 Kommentar
Justina Bonaventura
am 8 Apr. 2021
This is great, Thank you!
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!