Compiler problems with Model Referencing

조회 수: 14 (최근 30일)
Hernández García Ángel
Hernández García Ángel 2018년 4월 3일
답변: Keith Rogers 2020년 3월 2일
Hi all,
When I tried to run my Simulink model in Accelerator mode, it gives me the following error message:
"The model 'Cheste_Microgrid_RMS_v8' is configured to use the compiler 'MinGW64 Compiler (C): Toochain', however the referenced model 'Cell_Temperature' was built with 'LCC64:TMF' which is not compatible for a model reference hierarchy build. Consider configuring all modules to use the same compiler. The Build Process will terminate".
Then, If I run the Simulink Model in Normal mode, it didn't give me these errors and the simulation is completed successfully. I have tried to check "mex -setup" and the compiler working 'MinGW64 Compiler (C)' and I don't understand why Simulink when it's loading the model it doesn't compile the Model Reference 'Cell_Temperature' as the main model 'Cheste_Microgrid_RMS_v8'. I also have tried to run Performance Advisor and it is not able to fix the problem.
King Regards,
  댓글 수: 2
Syed Hussain
Syed Hussain 2019년 2월 18일
Hi
Where you able to solve this issue.? I am also facing this issue with model referencing.
Regards
Pablo Nanez
Pablo Nanez 2019년 3월 6일
Same here, my simulation was running ok, and I start getting this error after I installed MinGW-w64 Compiler from https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler

댓글을 달려면 로그인하십시오.

답변 (1개)

Keith Rogers
Keith Rogers 2020년 3월 2일
I tried doing what it suggested and copied the contents into new files. That resolved the problem for me.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by