matlab用Fn(u)函数时会出错,不是函数问题,错误如下,求大神指点
在同学电脑上都可以,但是我电脑就是无法运行函数,这是怎么回事啊。。。。要哭了Applications/MATLAB_R2013a.app/bin/mex-c-O-DMAT...
在同学电脑上都可以,但是我电脑就是无法运行函数,这是怎么回事啊。。。。要哭了
Applications/MATLAB_R2013a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2013a.app/stateflow/c/mex/include -I/Applications/MATLAB_R2013a.app/stateflow/c/debugger/include turbine_sfun.c
xcrun: error: SDK "macosx10.7" cannot be located
clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7'
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:33:
In file included from /Applications/MATLAB_R2013a.app/simulink/include/mwmathutil.h:23:
/Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error:
unknown type name 'char16_t'
typedef char16_t CHAR16_T;
^
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:34:
/Applications/MATLAB_R2013a.app/simulink/include/simstruc.h:148:10: fatal error:
'string.h' file not found
#include <string.h>
^
2 errors generated.
mex: compile of ' "turbine_sfun.c"' failed. 展开
Applications/MATLAB_R2013a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2013a.app/stateflow/c/mex/include -I/Applications/MATLAB_R2013a.app/stateflow/c/debugger/include turbine_sfun.c
xcrun: error: SDK "macosx10.7" cannot be located
clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7'
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:33:
In file included from /Applications/MATLAB_R2013a.app/simulink/include/mwmathutil.h:23:
/Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error:
unknown type name 'char16_t'
typedef char16_t CHAR16_T;
^
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:34:
/Applications/MATLAB_R2013a.app/simulink/include/simstruc.h:148:10: fatal error:
'string.h' file not found
#include <string.h>
^
2 errors generated.
mex: compile of ' "turbine_sfun.c"' failed. 展开
2个回答
2014-05-10
展开全部
是不是因为你们两个人操作系统不同或者matlab软件版本不同的问题
2014-05-10
展开全部
程序设计不同叭
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询