MATLAB Answers

MATLAB Detection of Compiler

3 ビュー (過去 30 日間)
Jason Nicholson
Jason Nicholson 2018 年 10 月 16 日
回答済み: Jason Nicholson 2018 年 10 月 25 日
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 件のコメント
Jason Nicholson
Jason Nicholson 2018 年 10 月 20 日
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

サインインしてコメントする。

採用された回答

Jason Nicholson
Jason Nicholson 2018 年 10 月 25 日
See comments above for answer.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by