No supported compiler is found
조회 수: 82 (최근 30일)
이전 댓글 표시
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
Walter Roberson
2023년 10월 20일
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
답변 (1개)
Shree Charan M L
2023년 10월 20일
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:
- https://www.mathworks.com/matlabcentral/answers/455085-no-supported-compiler-was-found
- https://www.mathworks.com/matlabcentral/answers/441365-error-using-mex-no-supported-compiler-was-found
Hope this helps and you’re able to resolve the issue regarding compilers not being found......
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!