- I cannot reproduce your issue as I can run simulation for the given model. I also was able to build C++ code by changing the target tlc file to ert.tlc (I don't have your tlc files) and some configuration parameters.
- From your error message stating "'nmake' is not recognized", I believe the path to Visual Studio's nmake.exe is not added to your system environment path. One thing you can try is to include the path of "nmake.exe" into system environment path. For example, C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
- If another error message follows like "Error: cannot determine the location of the VS common Tools folder", then adding the following path to the PATH environment can be helpful: C:\windows\system32
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1431523/image.png)