Not able to use MINGW compiler for C++
1 view (last 30 days)
Hi, I am trying to run this example file (https://de.mathworks.com/help/coder/ug/generate-cpp-classes-for-matlab-classes-that-model-simple-and-damped-oscillators.html) on my PC with Matlab 2021b and I get the following error message even though I have installed the MinGW C/C++ compiler. I have tried to resolve this but was not successful. Please help me.
David Fink on 21 Oct 2021
As Gagan figured out, the Visual Studio compiler was not correctly installed, and uninstalling + reinstalling it allowed MATLAB to find it.
For reference, here is the page describing how to change MATLAB's default compiler: