Why do I get the error 'The make command returned an error of 9009' when simulating a model in Accelerator mode?

17 Ansichten (letzte 30 Tage)
I have a Simulink 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 the compiler, with:
>> mex -setup
However, the issue does not seem to be solved.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 25 Apr. 2024
Bearbeitet: MathWorks Support Team am 25 Apr. 2024
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:

Weitere Antworten (0)

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Produkte


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by