Mathematica 11.2 supports the C compiler of Microsoft's Visual Studio, which is what I have. But Mathematica 11.3 does not. The only compilers that 11.3 seems to support are gcc and Intel, both of which are unavailable on my computer. Is the any way I can tell Mathematica to use the compiler that I have?
So in the reference it goes like this
But if I try the code myself, it shows this, missing out most of the C compiler supported on windows.
Moreover,
CCompiler[]
does not show the visual studio compiler that I've already installed, showing {}
, as if there is no C compiler installed.
-
1$\begingroup$ If you experience a problem, please provide precise steps to reproduce it. Also, what is "SO"? $\endgroup$ – Szabolcs Apr 28 '18 at 11:32
-
3$\begingroup$ Is your question "How to use Visual Studio compiler in MMA 11.3" ? $\endgroup$ – anderstood Apr 28 '18 at 11:52
-
1$\begingroup$ windows. I type Need["CCompiler"], and then get the types of compilers supported, but there's no visual studio $\endgroup$ – t-smart Apr 29 '18 at 12:22
-
1$\begingroup$ @Coolwater no, just english characters. $\endgroup$ – t-smart May 2 '18 at 13:05
-
1$\begingroup$ @Szabolcs I've edited this question, please reopen it $\endgroup$ – t-smart May 4 '18 at 10:13
Ensure that you have the Windows 10 SDK and Universal Windows Platforms tools for C++
Also the Desktop Development Tools
Do a rebuild of VIsual Studio. Goo to Visual Studio 2017 Installer then under Visual Studio Community choose the MORE drop down bottom.
DO the same in Visual Studio Build.
After all these, Turn off computer and restart. Make sure that your code starts code with
Needs["CCompilerDriver`"]
CCompilers[]