6
$\begingroup$

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 thisenter image description here 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.

$\endgroup$
  • 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
6
$\begingroup$

Ensure that you have the Windows 10 SDK and Universal Windows Platforms tools for C++

enter image description here

Also the Desktop Development Tools

enter image description here

enter image description here

Do a rebuild of VIsual Studio. Goo to Visual Studio 2017 Installer then under Visual Studio Community choose the MORE drop down bottom.

enter image description here

DO the same in Visual Studio Build.

enter image description here

After all these, Turn off computer and restart. Make sure that your code starts code with

Needs["CCompilerDriver`"]
CCompilers[]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.