I'm running Mathematica 9 on a 64 bit Windows 8.1 laptop. I'm having no luck getting C compilation to work.
Needs["CCompilerDriver`"]
CCompilers[Full]
CCompilers[]
returns
{} {}
The package did load successfully, as $Packages shows CCompilerDriver entries and
$ContextPath//First
returns
"CCompilerDriver`"
I have the following compilers installed:
- Microsoft Visual Studio Professional 2013
- Intel C++ Composer XE
PATHto the Visual Studio compiler is not set system wide. Can you try to add VC to yourPATHand restart Mathematica? – halirutan Feb 04 '14 at 14:55VS110COMNTOOLSenvironment variable. There are lines likeinstallPath["2012"] := installPathFromEnvironment["VS110COMNTOOLS"]for 2005, 2008, 2010 and 2012, but not 2013. I don't know how your version of VS indicates its location, but you could tryCCompilerDriver`VisualStudioCompiler`Private`installPath["2013"] := ...or whatever is appropriate for you compiler, and trying again. – Szabolcs Feb 04 '14 at 16:33AddOns\Applications\CCompilerDriver\VisualStudioCompiler.mand look for the lines I mentioned, possible try to add a new definition suitable for your compiler (after backing up the original version of this package file!!) Let me know if this has worked. As I said, I cannot test it. – Szabolcs Feb 04 '14 at 16:34