Why do I receive "The system cannot find path specified." error in Matlab 2018a while trying code generation of a protected simulink model?
10 views (last 30 days)
Show older comments
I have a simulink model which has protected reference model in it. When I try to genrate C++ code I get error below.
The system cannot find path specified
'nmake' is not recognized as an internal or external command,
operable program or batch file.
The make command returned an error of 9009
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
However the owner of protected model can genrate code in another computer. When I copy model to different computer it gives error. I am using Microsoft Visual Studio 2012. I have already unistalled and re-installed Visual Studio but it didn't work. I also tried a newer version of Visual Studio(2015) but it did not solve the problem either.
Please help me to resolve this issue.
0 Comments
Answers (1)
Yongjian Feng
on 2 Aug 2021
Did you try to run it from a Developer Command Prompt window? It seems like it has trouble to find nmake.
0 Comments
See Also
Categories
Find more on Simulink Coder 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!