0
我在Simulink中爲模型加速和模型引用技術中的演示示例獲取此構建錯誤。我在Mac OSX 10.9.5中使用Matlab R2013b,並使用Xcode 6.2/Clang ++作爲我的C/C++編譯器。該錯誤似乎是由於丟失/未知類型char16_t。該similar issue was resolved by using CFLAGS -Dchar16_t=UINT16_T
for Matlab compiler for Mac OSX。我沒有matlab編譯器的問題,但通過編譯simulink模型(即在sbuild
函數中)得到編譯錯誤。任何線索如何解決此構建錯誤?Matlab-Simulink中的模型加速(Mac OSX)
### 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.