我是靠谱客的博主 奋斗小虾米,最近开发中收集的这篇文章主要介绍simulink 库编译错误,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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:

>> mex adm1_DAE1.c

adm1_DAE1.c
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%ATLMFCINCLUDE;%LINKERDIR%include;%INCLUDE%"

and it worked. Thanks for the help all!

最后

以上就是奋斗小虾米为你收集整理的simulink 库编译错误的全部内容,希望文章能够帮你解决simulink 库编译错误所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(66)

评论列表共有 0 条评论

立即
投稿
返回
顶部