The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Mathematica does not recognize C Compiler
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Joao Pereira

Posts: 17
Registered: 8/18/11
Mathematica does not recognize C Compiler
Posted: Jul 16, 2013 5:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, I would like to ask for some help regarding C Compilers in Mathematica.

The problem I have is that Mathematica does not recognize the presence of a C Compiler.

When I do CCompilers[Full] it returns:

{{Name->Intel Compiler,Compiler->CCompilerDriver`IntelCompiler`IntelCompiler,CompilerInstallation->None,CompilerName->Automatic},{Name->Generic C Compiler,Compiler->GenericCCompiler,CompilerInstallation->None,CompilerName->Automatic}}

And when I do CCompilers[ ] it returns { }




I have Windows 7 Ultimate 64 bits.

I followed this thread:

and installed two C Compilers: one via .NETFramework and Windows SDK 7.1, the other one was the 64 bit MinGW.
Unfortunetely Mathematica 8 still does not recognize any C Compiler.

I tried
$CCompiler = {"Compiler" -> GenericCCompiler,
"CompilerInstallation" -> "C:……Path",
"CompilerName" -> "x86_64-w64-mingw32-gcc.exe"};

After this i tried CCompiler[ ] and the output was:

{"Compiler" -> GenericCCompiler,
"CompilerInstallation" -> "C:……Path",
"CompilerName" -> "x86_64-w64-mingw32-gcc.exe"}

Nevertheless, when I do CCompiler [ ] the result shows nothing again.

Regarding the Microsoft CCompiler, I’m not sure what executable file is appropriate, I read somewhere that it should be cl.exe but I can’t find this file anywhere. As you can see I am not very familiar with this subject.

Could you let me know what I am doing wrong here?

I really need to speed up some code.

Thanks in advance


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.