MATLAB: Do I get the error ‘The make command returned an error of 9009’ when simulating a model in Accelerator mode

9009acceleratorcommanderrormakenmakesimulink

I have a model in R2013b which I can successfully simulate in Normal mode. However, when I switch to Accelerator mode, I get the following error:
'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.
I am using Microsoft Windows SDK 7.1 as a compiler.
I have already:
1. uninstalled ‘Microsoft Visual C++ 2010’ and ‘Microsoft Windows SDK 7.1’, and re-installed them in the following order: Microsoft Visual Studio C++ 2010 first, then Microsoft Windows SDK 7.1, as specified here:
2. followed these instructions when installing Windows SDK 7.1:
3. set SDK 7.1 as compiler, with:
>> mex -setup
However, the issue does not seem to be solved.

Best Answer

In this case the issue is likely related to some path corruption.
Try and execute:
>> installedCompilers = mex.getCompilerConfigurations('C','Installed');
>> installedCompilers.Location
If some of the locations are corrupted, as for example:
ans = ''\bin' is not recognized as an internal or external command, operable program or batch file'
then the "Location" field is not pointing where it should, that is the folder which contains the compiler.
You might need to modify the "Path" environment variable in Windows to address this issue.
The link below shows how to access and edit that:
For further information, refer to the following link: