簡體   English   中英

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

[英]Model acceleration in Matlab-Simulink (Mac OSX)

我在Simulink中的演示示例中遇到了有關模型加速和模型引用技術的構建錯誤。 我在Mac OSX 10.9.5中使用Matlab R2013b,並使用Xcode 6.2 / Clang ++作為我的C / C ++編譯器。 該錯誤似乎是由於缺少/未知的char16_t類型引起的。 通過將CFLAGS -Dchar16_t=UINT16_T用於Mac OSX的Matlab編譯器,可以解決類似的問題 我沒有與matlab編譯器有關的問題,但是在simulink模型的編譯中(即在sbuild函數中)出現了構建錯誤。 任何線索如何解決此構建錯誤?

### 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.
#include <stdint.h>

是獲取char16_t聲明的一種方法。 如果您無法修改代碼,則可以使用該文件的強制包含(有關強制包含的選項,請參見編譯器的文檔)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM