No supported compiler is found

80 views (last 30 days)
Andreas Kraus
Andreas Kraus on 25 Mar 2022
Commented: Walter Roberson on 20 Oct 2023
When calling mex -setup i get the following error:
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For
I installed Windows SDK 7.1, Visual Studio Express 2017 and MinGw. Why doesn't MatLab find a Compiler?
  2 Comments
Srijith Kasaragod
Srijith Kasaragod on 4 Apr 2022
Please share the output of following command:
mex -setup -v
Walter Roberson
Walter Roberson on 20 Oct 2023
R2022a supported MinGW 6.3, VS C++ 2019 family, VS C++ 2017 family, several VS C++ 20xx Professional... but it did not support SDK 7.1
I would have expected R2022a to be able to find VS Express 2017; I would want to see the output of mex -setup -v

Sign in to comment.

Answers (1)

Shree Charan M L
Shree Charan M L on 20 Oct 2023
Hi Andreas,
I understand that you are facing an error when you’re trying to run mex -support.
The error message you received indicates that MATLAB was unable to find a supported compiler on your system. Here are a few possible reasons why this might be happening:
1. Incorrect Compiler Installation: Ensure that you have installed the compiler correctly and that it is compatible with your version of MATLAB. You can find more information on the compatible compilers here: https://www.mathworks.com/support/requirements/supported-compilers.html
2. Environment Variables: MATLAB relies on certain environment variables to locate the compiler. Ensure that the PATH environment variable includes the path to the compiler's bin directory.
If the issue is still not resolved, running the following code snippet might help pinning the problem down.
mex -v -setup
The following MATLAB Answers threads might help:
Hope this helps and you’re able to resolve the issue regarding compilers not being found......

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!