Mex "Unable to determine MEX compiler"

31 visualizaciones (últimos 30 días)
zhaozhou wu
zhaozhou wu el 21 de Nov. de 2019
Comentada: Fangjun Jiang el 21 de Nov. de 2019
I am trying to use mex -setup to use Visual Studio 2017 as my C++ compiler for my matlab2019a.
I installed VS2017 and when I use mex -setup, everyting seemed to be well :
>> mex -setup:C:\Users\userwzz\AppData\Roaming\MathWorks\MATLAB\R2019a\mex_C++_win64.xml C++
MEX configured to use 'Microsoft Visual C++ 2017' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
However, when I run:
>> proj = openProject(pwd);
>> webcoder.build.project(proj);
to use the compiler for my program, the error occured:
??? The library method 'images.internal.coder.buildable.Grayto8Buildable.updateBuildInfo' failed.
Caused by:
Unable to determine MEX compiler: use mex -setup to configure your system.
Code generation failed: View Error Report
Error using codegen
Any suggestions for my problem? Why my matlab can't determine the compile after mex setup VS2017 as my compile for C++?
Thanks.
  1 comentario
Fangjun Jiang
Fangjun Jiang el 21 de Nov. de 2019
Might it be that you've set up for C++, but not for C?
Just run "mex -setup" again

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by