Why is the build process failing in Simulink?

1 次查看(过去 30 天)
I'm trying to build a built-in demo, I get an error message stating that the build has failed.
The error message is the following:
gmake: *** [IdenImpe.obj] Error 1
gmake: *** Waiting for unfinished jobs....
C:\Users\Fio\Desktop\IdenImpe_ert_rtw>echo The make command returned an error of 2 T
he make command returned an error of 2 C:\Users\Fio\Desktop\IdenImpe_ert_rtw>exit 1

回答(1 个)

Harsh Sharma
Harsh Sharma 2024-8-30
Hi Da Wang,
The error you are facing is likely to be caused due to version compatibility issue between MATLAB and MinGW. You can use the following support package to install the correct version of MinGW based on your MATLAB version - https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-fortran-compiler?s_tid=srchtitle
You can also check the Supported MATLAB version for a MinGW version from the above page.

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by