I'm trying to use LLVM's Clang compiler for Compile[ ] and running into a problem. The operating system is Windows 8.1 (64 bit) and the Mathematica version is 10.0.2
Needs["CCompilerDriver`"]
Needs["CCompilerDriver`GenericCCompiler`"]
$CCompiler = {"Compiler" -> GenericCCompiler,
"CompilerInstallation" -> "C:/LLVM",
"CompilerName" -> "clang.exe"};
c = Compile[ {{x, _Real}, {n, _Integer}},
Module[ {sum, inc}, sum = 1.0; inc = 1.0;
Do[inc = inc*x/i; sum = sum + inc, {i, n}]; sum],
CompilationTarget -> "C"]
LibraryFunction::libload: The function compiledFunction0 was not loaded from the file C:\Users\Frank\AppData\Roaming\Mathematica\ApplicationData\CCompilerDriver\BuildFolder\hplargedesktop-9156\compiledFunction0.dll. >>
Compile::nogen: A library could not be generated from the compiled function. >>
However, CreateExecutable works with the settings "Compiler" -> GenericCCompiler, "CompilerInstallation" -> "C:/LLVM", "CompilerName" -> "clang.exe"