How to fix rtwtypes.h error?
23 次查看(过去 30 天)
显示 更早的评论
When running the model Electrci vehcicle reference application model from powertrain blockset, cant able to get result expect these errors. Can anyo one please help me put of this.
### Build procedure for model: 'BattEv' aborted due to an error.
C:/PROGRA~1/Polyspace/R2019b\sys\lcc64\lcc64\bin\lcc64 -c -FoBattEv.obj -nodeclspec -c -DMATLAB_MEX_FILE -DMODEL=BattEv -DNUMST=1 -DNCSTATES=1 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMDL_REF_SIM_TGT=1 -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I. -I../../.. -IC:/Users/MATLAB/Projects/examples/EV4/main/Work -IC:/Users/MATLAB/Projects/examples/EV4/main/Work/slprj/sim/BattEv -IC:/PROGRA~1/Polyspace/R2019b/extern/include -IC:/PROGRA~1/Polyspace/R2019b/simulink/include -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/src -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/Polyspace/R2019b/rtw/c/ert -IC:/Users/MATLAB/Projects/examples/EV4/main/Work/slprj/sim/_sharedutils -IC:/PROGRA~1/Polyspace/R2019b\sys\lcc64\lcc64\include64 -w -noregistrylookup -dll -Zp8 -noregistrylookup -DLCC_WIN64 BattEv.c cpp: c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_modelmap.h:30 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev.h":6 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev_capi.h":4 battev.c:2 Could not find include file "rtwtypes.h" cpp: c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_capi.h:22 c:/progra~1/polyspace/r2019b/rtw/c/src\rtw_modelmap.h:42 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev.h":6 "c:\users\matlab\projects\examples\ev4\main\work\slprj\sim\battev\battev_capi.h":4 battev.c:2 Could not find include file "rtwtypes.h"
Error(s) encountered while building "BattEvlib"
Component:Simulink | Category:Model error
Error while bringing model references of model EvReferenceApplication up to date: see errors reported above for details.
Component:Simulink | Category:Model error
2 个评论
Chirag
2020-5-26
Are you Simulating model or generating code? Error message suggests that you are generating code. Can you please confirm?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Powertrain Reference Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!