MATLAB Answers

0

MATLAB Detection of Compiler

Asked by Jason Nicholson on 16 Oct 2018
Latest activity Answered by Jason Nicholson on 25 Oct 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 Comments

Helper
on 19 Oct 2018
The msvcpp files would be used during the compilation. Please use "mex -setup -v" to check more information for searching the compiler.
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

Sign in to comment.

Tags

Products

1 Answer

Answer by Jason Nicholson on 25 Oct 2018
 Accepted Answer

See comments above for answer.

  0 Comments

Sign in to comment.