Error with installing MATLAB Support for MinGW-w64 C/C++ Compiler

28 visualizaciones (últimos 30 días)
Romio
Romio el 7 de Mayo de 2020
Respondida: Moin el 29 de Jun. de 2022
Hi
I am trying to run .c code on MATLAB. I did try using mex, but it gives me this error:
Error using mex
No supported compiler was found. For options,
After searching, it turns out that I need to download "MATLAB Support for MinGW-w64 C/C++ Compiler"
I tried. But it gives me another error:
The support package is not compatible with your version of MATLAB or operating system
I have MATLAB R2018a, and my laptop is Mac.
Any help?
Thanks

Respuestas (1)

Moin
Moin el 29 de Jun. de 2022
I understand that you are trying to run C code in MATLAB. Your MATLAB version is R2018a and your operating system is macOS.
But, you have downloaded the package "MATLAB Support for MinGW-w64 C/C++ Compiler" which is for the Windows-64 bit Operating System.So, this is showing an error “The support package is not compatible with your version of MATLAB or operating system” pointing that it’s a wrong package for macOS.
On macOS, no C compiler is supplied with MATLAB. If you use products that require one, Apple's development environment for macOS (Xcode) is available in the Mac App Store.
For more information kindly refer the below documentation links:

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by