Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 { }

Also,

DefaultCCompiler[]

NVCCCompiler

I have Windows 7 Ultimate 64 bits.

I followed this thread:
http://mathematica.stackexchange.com/questions/5487/how-do-i-get-mathematica-to-recognize-a-c-compiler-on-a-64-bit-windows-machine

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

Joao




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.