Compiler problems with Model Referencing

8 次查看(过去 30 天)
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