首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Matlab-Simulink (Mac OSX)中的模型加速

Matlab-Simulink (Mac OSX)中的模型加速
EN

Stack Overflow用户
提问于 2015-05-09 15:30:45
回答 1查看 242关注 0票数 0

我在Simulink中的一个用于模型加速和模型引用技术的演示示例中遇到了这个构建错误。我在MacOSX10.9.5中使用Matlab ++,使用Xcode6.2/ R2013b ++作为我的C/C++编译器。该错误似乎是由于缺少/未知类型char16_t造成的。similar issue was resolved by using CFLAGS -Dchar16_t=UINT16_T for Matlab compiler for Mac OSX。我没有关于matlab编译器的问题,但是在编译simulink模型时(即在sbuild函数中)得到了构建错误。有什么线索可以解决这个构建错误吗?

代码语言:javascript
复制
### Build procedure for model: 'sldemo_mdlref_counter' aborted due to an error.
### Model reference SIM target (sldemo_mdlref_counter_msf.mexmaci64) for model sldemo_mdlref_counter is out of date because sldemo_mdlref_counter_msf.mexmaci64 does not exist.
### Updating model reference SIM target for model: sldemo_mdlref_counter
xcrun clang -arch x86_64 -c -fno-common -fexceptions     -O0 -DNDEBUG -DMODEL=sldemo_mdlref_counter -DNUMST=1 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DMDL_REF_SIM_TGT=1 -I. -I../../.. -I/Applications/MATLAB_R2013a.app/extern/include -I/Applications/MATLAB_R2013a.app/simulink/include -I/Applications/MATLAB_R2013a.app/rtw/c/src -I/Applications/MATLAB_R2013a.app/rtw/c/src/ext_mode/common -I. -I/Users/santanusarma/Dropbox/M.TECH\ project/code/model     -I../../../slprj/sim/_sharedutils   "sldemo_mdlref_counter.c"
In file included from sldemo_mdlref_counter.c:2:
In file included from ./sldemo_mdlref_counter_capi.h:4:
In file included from ./sldemo_mdlref_counter.h:4:
In file included from /Applications/MATLAB_R2013a.app/rtw/c/src/rtw_modelmap.h:33:
In file included from ../../../slprj/sim/_sharedutils/rtwtypes.h:13:
/Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error: unknown type
      name 'char16_t'
typedef char16_t CHAR16_T;
        ^
1 error generated.
gmake: *** [sldemo_mdlref_counter.o] Error 1

### Build procedure for model: 'sldemo_mdlref_counter' aborted due to an error.
EN

回答 1

Stack Overflow用户

发布于 2015-05-09 17:04:47

代码语言:javascript
复制
#include <stdint.h>

是获取char16_t声明的一种方法。如果您不能修改代码,那么您可以使用该文件的强制包含(请查看编译器的文档,了解其强制包含的选项是什么)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30137293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档