Make error

I use windows 7, 64 bit. I am running a simulink file in Matlab. I face to this error:
Making simulation target "Model_1_sfun", ...
'Model_1_sfun.bat' is not recognized as an internal or external command, operable program or batch file.
any body knows how should I fix that?

 采纳的回答

Pawel Blaszczyk
Pawel Blaszczyk 2011-9-30
Have you tried set up your compiler:
mex -setup

6 个评论

sara
sara 2011-9-30
what do you mean by that?
At the MATLAB command line, issue the command
mex -setup
and choose the compiler you want to use.
As you are using Windows 64 bit, you will need to do more than one step to install the full compilers. Please read through
http://www.mathworks.com/support/compilers/R2011b/win64.html
sara
sara 2011-9-30
Thank you for your answer. I already installed both microsoft visual C++ 2010 express and microsoft windows SDK 7.1.
should I install some thing else you think?
sara
sara 2011-9-30
when I select my compiler this warning return:
Warning: MEX-files generated using Microsoft Visual C++ 2010 require
that Microsoft Visual Studio 2010 run-time libraries be
available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
***************************************************************************
Trying to update options file: C:\Users\ehos\AppData\Roaming\MathWorks\MATLAB\R2011a\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2011a\bin\win64\mexopts\msvc100freeopts.bat
Done . . .
**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
Use the -help option for more information, or consult the MATLAB API Guide.
sara
sara 2011-9-30
I just reinstalled the compilers. that worked. thank you so much.I had wasted a couple of days for that :-)
how do you reinstall the compilers?

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by