Why do I receive "The system cannot find path specified." error in Matlab 2018a while trying code generation of a protected simulink model?

조회 수: 6 (최근 30일)
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.

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 8월 2일
Did you try to run it from a Developer Command Prompt window? It seems like it has trouble to find nmake.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by