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内容请搜索靠谱客的其他文章。
发表评论 取消回复