MATLAB Detection of Compiler

조회 수: 6 (최근 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
Helper
Helper 2018년 10월 19일
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 2018년 10월 20일
편집: 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개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by