MATLAB: Does MATLAB Coder give the error “??? Unknown compiler ‘mingw64’.”

codegencompilermatlab codermingw

Best Answer

Due to a refactoring in R2019b, an error check was being run which was not previously run in R2019a. This caused the error to be issued. It has been resolved in R2020a.
As a workaround, set the "GenerateMakefile" parameter of the configuration object as "true" prior to generating code. For example:
>> cfg = coder.config(...);
>> cfg.GenerateMakefile=true;
...
>> codegen -config cfg ....