How do I tell MATLAB to use MinGW C++ compiler instead of MSVC?

I just installed the MinGW C++ compiler add-on.
When I run some Simulink simulation from the CygWin command line, MATLAB tries to use the Microsoft C++ compiler which I also have on my system.
How do I tell MATLAB to use MinGW C++ compiler?

Products

Tags

Asked:

on 20 Jan 2021

Answered:

on 20 Jan 2021

Community Treasure Hunt

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

Start Hunting!