How can I use a compiler on Simulink 7.2 (on Matlab 7.7) running on Windows 7

I am attempting to use an Embedded MATLAB Function block in Simulink 7.2 (from Matlab 7.7) on a Windows 7 machine. I have installed Visual C++ 2008 and Windows Server 2008 & .NET 3.5 SDK following the guide from: http://www.mathworks.com/matlabcentral/answers/98351
However, I am reviving this error when I try to run a simple Embedded MATLAB Function:
Message: Code Error Source: Unknown: Reported by: Stateflow Summary: The mex compiler 'Microsoft Visual C++ 2008 Express' is not supported for simulation builds. Use 'mex -setup' to select a supported compiler
Any thoughts on how I can fix this?
Thanks, Tom

답변 (2개)

Andreas Goser
Andreas Goser 2013년 12월 10일
편집: Andreas Goser 2013년 12월 10일
Simulink 7.2 is from Release 2008b and the supported compilers are listed here for Win32 and here for Win64. There is a column for Simulink Embedded MATLAB.
Tom
Tom 2013년 12월 10일
Thanks, so I've installed Visual C++ 2005 Express which should work with the Windows Server 2008 & .NET 3.5 SDK which should work?
Now I have the error:
Message: Make Error Reported By: Make Summary: Making simulation target "untitled1_sfun", ...
C:\Users\username\Documents\MATLAB\slprj\_sfprj\untitled1\_self\sfun\src>call "mexopts.bat" 'nmake' is not recognized as an internal or external command, operable program or batch file.
Help!

카테고리

도움말 센터File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

질문:

Tom
2013년 12월 10일

답변:

Tom
2013년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by