Strange Coder error, compiler configured okay but detection failed

>> mex -setup
MEX configured to use 'Xcode with Clang' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
>> genc
------------------------------------------------------------------------
Error Report: Command "clangSetupFcn" threw an error: Unable to detect supported compiler. Install a supported compiler. For more information, see Supported and Compatible Compilers.
------------------------------------------------------------------------
Build error: C compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report
Error using codegen
Error in genc (line 13)
codegen -config cfg ...
>>

답변 (1개)

David Fink
David Fink 2023년 12월 28일

0 개 추천

This error can occur if your version of Xcode is not supported, or Xcode is not fully installed or set up.
To check which versions of Xcode are supported, see:
Current release of MATLAB:
Previous releases of MATLAB:
If your version of Xcode is supported for your release of MATLAB and you still see this error, contact MathWorks Technical Support.

카테고리

도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

릴리스

R2023a

태그

질문:

2023년 12월 27일

답변:

2023년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by