Why does HDL codegeneration fails for my model with a "File format not recognized" error message?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 29 Feb 2016
Edited: MathWorks Support Team
on 25 Feb 2021
When I try to generate HDL code for my model, then it fails in one of the intermediate steps with this error message:
MEX completed successfully. ### Linking ... "C:\matlab\R2015b\bin\win64\mex.exe" -silent LDFLAGS="$LDFLAGS " -output mymodel_cgxe.mexw64 "C:\matlab\R2015b\extern\lib\win64\mingw64\libmx.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libmex.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libmat.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libfixedpoint.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libut.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libmwmathutil.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libemlrt.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libmwcgxert.lib" "-LC:\matlab\R2015b\bin\win64" "-llibmwipp" "C:\matlab\R2015b\extern\lib\win64\mingw64\libcovrt.lib" "C:\matlab\R2015b\extern\lib\win64\mingw64\libmwblas.lib" @mymodel_cgxe.mol
C:\matlab\R2015b\bin\win64/libmwipp.dll: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
gmake: *** [mymodel_cgxe.mexw64] Error -1
Accepted Answer
MathWorks Support Team
on 25 Feb 2021
Edited: MathWorks Support Team
on 25 Feb 2021
This issue is caused by using an unsupported version of the MinGW compiler. In Release 2015b MATLAB on Windows only supports MinGW 4.9.2. You can use the "--version" flag on the GCC executable to find our what exact version you have.
See the following page for details on how to install the supported version of MinGW:
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!