# How to install and configure Intel C++ Compiler for Mathematica correctly?

I wish to try the trial version of the latest Intel C++ Compiler for Windows with Mathematica. I have downloaded the current version of Intel® C++ Composer XE 2011 for Windows and installed only the "Intel C++ Compiler" component from this package. But Mathematica does not recognize it:

In[1]:= Needs["CCompilerDriver"]
CCompilers[]

Out[2]= {}


How to configure Mathematica to use the Intel C++ Compiler?

-
Make sure you have installed the 64 bit tools for Visual studio (if you are on a 64 bit system). You did install visual studio right? –  Ajasja May 23 '12 at 15:02
Yes, for the Intel compiler it is strictly necessary. It works with the Express edition as well, at least I think so. –  Ajasja May 23 '12 at 15:08
This Intel version 12 is not supported, and that's why CCompilerDriver is not automatically detecting your Intel compiler. Until I have a chance to look into this, you could go into AddOns/Applications/CCompilerDriver/IntelCompilerWindows.m and replace ICPP_COMPILER11 with ICPP_COMPILER12. This may work only superficially, but it would be the fastest thing for you to try. –  Joel Klein May 24 '12 at 2:24
@jfklein It works, thank you. @Ajasja After defining $CCompiler = {"Compiler"->CCompilerDriverIntelCompilerIntelCompiler,"CompilerInstallation"-‌​>"C:\\Program Files\\Intel\\Composer XE 2011 SP1\\"}; now DefaultCCompiler[] returns CCompilerDriverIntelCompilerIntelCompiler. – Alexey Popkov May 24 '12 at 10:03 CCompilers[] only lists compilers that are seen to be valid installations. CCompilers[Full] will list all compilers supported on that$SystemID. –  Joel Klein May 24 '12 at 18:01

In order to use the Intel 12 compiler, you'll need to set $CCompiler to point CCompilerDriver to where you've installed the Intel compiler: Needs["CCompilerDriver"]$CCompiler = {"Compiler" ->
CCompilerDriverIntelCompilerIntelCompiler,