Why does MEX not find the Microsoft Windows SDK 7.1 installed on 64-bit Windows in MATLAB 7.14 (R2012a)?

49 views (last 30 days)
I would like to use the Microsoft Windows SDK 7.1 as my C compiler in MATLAB 7.14 (R2012a) on 64-bit Windows.
I have already installed the Microsoft Windows SDK 7.1, but MEX still cannot find a C compiler. How can I correct this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Aug 2013
This may be due to a Microsoft issue where the SDK 7.1 compilers are missing. Try the following:
1. Go to the solution 1-G1P8HP titled
Why do I get errors with compiling even after I have installed the supported compilers Microsoft Visual Studio 2010 Express and Windows SDK 7.1?
at the bottom and follow the instructions there to apply the Microsoft SDK 7.1 patch.
2. If the above did not work, uninstall SDK 7.1. Then reinstall SDK 7.1 following the directions specified in solution 1-FPLDGV titled
How do I install Microsoft Windows SDK 7.1?
at the bottom.
  5 Comments

Sign in to comment.

More Answers (3)

Dietmar Haba
Dietmar Haba on 20 Nov 2013
Dear all, I had the same problem and I followed these suggestions. However, it didn't start working and I kept receiving my error message: "Unable to load DataSourceDll.dll. Please install Microsoft Windows SDK 7.1..."
Accidentially, i found another discussion on that topic (<http://www.mathworks.com/matlabcentral/answers/28894-problem-trying-to-load-dll-library-using-loadlibrary-error-is-a-selected-compiler-was-not-fou)>. And in fact,
mex -setup
solved the problem for me. Still don't know why. Just in case you have the same problem as me.

hui li
hui li on 28 Aug 2017
如何安装Microsoft Windows SDK 7.1?

spinecho
spinecho on 9 Oct 2017
Install this:
restart Matlab and run mex -setup

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Products


Release

R2012a

Community Treasure Hunt

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

Start Hunting!