MATLAB Answers

Select visual studio compiler with mex

7 views (last 30 days)
Jurgen
Jurgen on 18 Jul 2016
Commented: Walter Roberson on 19 Jul 2016
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?

Answers (1)

Walter Roberson
Walter Roberson on 18 Jul 2016
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 Comments
Walter Roberson
Walter Roberson on 19 Jul 2016
Sounds like you are using Windows 10. SDK 7.1 and Windows 10 do not mix easily.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!