Why does MEX not find the Microsoft Windows SDK 7.1 installed on 64-bit Windows in MATLAB 7.14 (R2012a)?
42 views (last 30 days)
Show older comments
MathWorks Support Team
on 6 Aug 2013
Commented: Mohamed Ibrahim
on 8 Apr 2020
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
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
More Answers (3)
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.
0 Comments
See Also
See Also
Why does the SDK 7.1 installation fail with an "Installation Failed" message on my Windows system?
14 answers
How do I install Microsoft Windows SDK 7.1?
20 answers
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!