I have used the MATLAB MinGW installation tool to install the MinGW compiler but I encounter the following error message when I try to run the basic 'yprime.c' mex example:
Building with 'MinGW64 Compiler (C)'.
Error using mex
The command 'C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\mingw_w64.instrset\bin\gcc' exited with a return value '0'
The compiler seems to be installed correctly and MATLAB clearly has the correct path to the compiler executable but the return value of '0' indicates that MATLAB is calling the compiler with no arguments. This is the mex equivalent of 'hello world' so I'm guessing that something more fundamental is wrong here and I'd appreciate any pointers about what it might be.
I'm running MATLAB 2019a on a Windows 10 machine in admistrator mode so that it can write the appropriate files.
Thanks for the help,