Select visual studio compiler with mex

조회 수: 6 (최근 30일)
Jurgen
Jurgen 2016년 7월 18일
댓글: Walter Roberson 2016년 7월 19일
I have visual studio 2015 (community) installed. It can compile C++ fine. Do I still need the Windows SDK to use mex, or is there a way for mex to work with my VS installation? It currently does not detect a compiler. Do I need to change an environment variable, or can I explicitly supply a path to mex with the compiler, e.g. C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 7월 18일
None of the VS "community" / "express" editions have been supported for the last several years.
I do not know what would be require to change the toolchain. I know it should be easier in newer releases; which MATLAB version are you using?
  댓글 수: 2
Jurgen
Jurgen 2016년 7월 19일
편집: Jurgen 2016년 7월 19일
I'm using 2015a. I can't find any options that let me choose the path directly. Seems they only want mex to auto-detect everything? I asked because the SDK doesn't seem to install properly, in my case I'd have to uninstall .NET 4.6 and install .NET 4.0, then revert after installing the SDK...
Walter Roberson
Walter Roberson 2016년 7월 19일
Sounds like you are using Windows 10. SDK 7.1 and Windows 10 do not mix easily.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by