I'm trying to setup mex in matlab and I got a message
"No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012b/win64.html" But this sdk is not suitable for WIn8. And I have already installed visual studio 2013. I don't understand why it can't find the compiler. Please help me.
Related
I have tried to run a Fortran code (.FOR) using Visual Studio 2019 and installed Intel OneAPI basic toolkits.
when I run a Fortran code I receive "ifort: error #10037: could not find 'link'". Does anyone know the solution?
Thanks.
You need Microsoft Visual Studio configured to include C++ for Desktop Applications. See https://www.intel.com/content/www/us/en/developer/articles/guide/installing-microsoft-visual-studio-2019-for-use-with-intel-compilers.html for more details. You might need to do a Change/Modify of the Intel oneAPI HPC Toolkit (from the Windows Settings > Apps dialog) to get it recognized.
I want develop Win32 and DirectX in Visual Studio Code.
I already installed gcc, mingw.
OS is windows10.
How do I setting it?
See Microsoft Docs for details on developing C++ code with VS Code.
The latest DirectX headers and link libraries are found in the Windows 10 SDK. Using the Visual C++ or clang/LLVM for Windows toolsets are the best options for consuming the latest Windows 10 SDK.
You may find the DirectX Tool Kit a useful starting point, although my tutorials focus on the Visual Studio MSBuild build environment. I also reference using CMake. You can use MSBuild through Visual Studio Community, and you can use CMake through either VS Community or VS Code.
Installed the WDK from: https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
Afterwords I can no longer compile any VC++ project. Repairing Visual Studios install doesn't fix the issue.
System: Windows 10, x64, Visual Studio 2017
Uninstalling all WDK (Windows Driver Kit) stuff seems to fix the problem but means I can't compile libs that depend on it.
The error list gave me a bit more of a hint on how to solve this.
After installing the Spectre-mitigated libraries I was able to build my project - MSVCRT.lib was found. There isn't enough info in your initial post to tell whether this is your issue, but if you get this error, it may be that Visual Studio isn't able to find the particular runtime that it's looking for.
I am aware that VC2010 Express Edition does not include OpenMP support and therefore would report omp.h file missing. Therefore, I have installed Windows SDK v7.1 64-bit version in Windows. However, even I ran:
set DISTUTIL_USE_SDK=1
setenv /x64 /release
And then try to compile the code, it would still report cannot find omp.h. Could anyone give me a hint on how to solve this?
Did some checking, and it appears that OpenMP is not part of the Windows SDK, and is only shipped with Visual C++ 2010 Professional or Ultimate editions.
I am having some trouble with the mex setup in terms of selecting a compiler. I have attempted to install windows SDK 7.1 but it fails each time. According to THIS forum it is because i have visual studio 10.0 installed (which I do). So ideally i should be able to set up mex with this compiler. But when i try i get the following error:
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)
...
[14] Microsoft Visual C++ 2010
[0] None
Compiler: 14
Warning: The default location for Microsoft Visual C++ 2010 compiler is:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0"
but either that directory does not exist or the configuration
is invalid.
*****************************************************************************
Error: Microsoft Visual C++ 2010 requires the Microsoft Windows Software
Development Kit (SDK), but the SDK cannot be found. Examine your
Microsoft Visual C++ 2010 installation.
*****************************************************************************
Error using mex (line 206)
Unable to complete successfully.
So obviously i do need SDK??? I have tried un-installing the SDK 7.1 from microsoft several times but no luck.
I have thought that maybe i need to manually point mex deeper into the visual studio file system in order to find the compiler, any ideas about that?
I am using Windows 7 64 bit with matlab R2012a.
Thanks for your help.
I don't know the reason for this but this is how I got it right.
Uninstall all versions of Microsoft Visual C++ Redistributable from your computer.
Install Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1 from here: https://www.microsoft.com/en-in/download/details.aspx?id=4422
Try mex -setup again.