Unable to determine MEX compiler: use mex -setup to configure your system.
45 views (last 30 days)
Show older comments
Hi,
I got this error while I'm generating my code at MATLAB Coder.
Any idea on how to resolve it? I couldn't find any solution available..
Thank you.
6 Comments
Answers (2)
David Fink
on 19 May 2020
[Copying the answer here]
At the MATLAB Command Prompt:
mex -setup -v
0 Comments
Oladipupo
on 1 Feb 2024
I have similar issue, ran the command still not working. Below is a snapshot
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1606126/image.png)
1 Comment
Walter Roberson
on 1 Feb 2024
At terminal,
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!