MATLAB Detection of Compiler

14 visualizaciones (últimos 30 días)
Jason Nicholson
Jason Nicholson el 16 de Oct. de 2018
Respondida: Jason Nicholson el 25 de Oct. de 2018
How does MATLAB detect the compiler in 2016b or newer?
I have written a custom compiler configuration xml file. mex.getCompilerConfigurations('C++,'supported') lists my configured compiler. However, I cannot get any further with "mex -setup C++". I get an error because MATLAB doesn't detect my custom compiler.
The custom xml file is attached. Note the main differences are at the bottom of the xml file in the "env" section.
  2 comentarios
Helper
Helper el 19 de Oct. de 2018
The msvcpp files would be used during the compilation. Please use "mex -setup -v" to check more information for searching the compiler.
Jason Nicholson
Jason Nicholson el 20 de Oct. de 2018
Editada: Jason Nicholson el 20 de Oct. de 2018
That helped. I was able to setup the xml file and get the compiler configured. MSVC 2017 Express lives.
Warning! This is hacky and hard coded. No guarantee it will work for you.
mex -setup:msvcpp2017Express.xml C++ -v

Iniciar sesión para comentar.

Respuesta aceptada

Jason Nicholson
Jason Nicholson el 25 de Oct. de 2018
See comments above for answer.

Más 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