Cannot create mex file even though compiler installed and recognized
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to compile some mex files. Since I got an error, I tried the standard matlab test https://se.mathworks.com/help/matlab/matlab_external/build-an-executable-mex-file.html:
copyfile(fullfile(matlabroot,'extern','examples','refbook','timestwo.c'),'.','f')
mex timestwo.c
I get the following error:
Building with 'Xcode with Clang'.
Error using mex
'/path/timestwo.mexmaci64' is not a MEX file. For more information, see File is not a MEX file.
Error in mextest (line 2)
mex timestwo.c
Note that the path is correct and that the file is indeed there. I am not sure what could be wrong. I run the newest version of matlab and xcode on mac and my OS is High Sierra, version 10.13.6
Any help is highly appreciated :-)
Thanks in advance
8 comentarios
OCDER
el 24 de Sept. de 2018
Can you show us the timestwo.c code? Or are you able to compile another mex code from the matlab examples?
Emil Partsch
el 25 de Sept. de 2018
Editada: Emil Partsch
el 25 de Sept. de 2018
Respuestas (0)
Ver también
Categorías
Más información sobre C Matrix API 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!