概述
Hi
I am new to Matlab and I am trying to mex .c files for the ADM1 model. I have the 64bit program and installed the Visio compiler. I did the mex -setup successfully but when I try to mex the .c files I get the following error message:
adm1_DAE1.c(19) : fatal error C1083: Cannot open include file: 'simstruc.h': No such file or directory
C:PROGRA~1MATLABR2010BBINMEX.PL: Error: Compile of 'adm1_DAE1.c' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
Anyone have any ideas what the problem is?
Thanks I found the mexopts.bat in C:Users*yourUsername*AppDataRoamingMathWorksMATLABR2010b and added the string "%MATLAB%simulinkinclude;" right after where it says "set INCLUDE = " so that it finally looks something like this
"set INCLUDE=%MATLAB%simulinkinclude;%VCINSTALLDIR%INCLUDE;%VCINSTALLDIR%ATL
最后
以上就是奋斗小虾米为你收集整理的simulink 库编译错误的全部内容,希望文章能够帮你解决simulink 库编译错误所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复