coder error: Unable to determine MEX compiler

I'm using MATLAB R2016a on Fedora 23. I've been having some problems generating mex files in MATLAB using gcc 5.3.1, which MATLAB says is not supported, so I downgraded to gcc 4.7.4 in the hopes that it would fix my problems. Now, when I try to run 'coder -build', I see the following error:
Unable to determine MEX compiler: use mex -setup to configure your system.
Use help codegen for more information on using this command.
Here's what I've tried so far:
I edited my mex_C_glnxa64.xml and mex_C++_glnxa64.xml files to point to the newly installed versions of gcc and g++. Then, I ran 'mex -setup c' and 'mex -setup c++' and selected gcc-4.7.4 and g++-4.7.4. I tested out the 'mex' command on example c and c++ files, and both commands succeeded.
I'm not sure what I've missed, and the error message is not particularly helpful. Any suggestions would be greatly appreciated.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2016년 7월 7일

편집:

2016년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by