I installed gcc but Mathematica (12) cannot seem to find it.
I installed gcc two ways: (i) via MinGW and (ii) CodeBlocks. A windows command line check confirms the compilers are installed.
I updated my Windows Environments. GetEnvironment[] now shows Path -> ..... C:\ Program Files (x86)\ CodeBlocks \ MinGW \ bin;C:\ MinGW \ \ ....
Still Mathematica does not find it. Executing
Needs["CCompilerDriver`"]
CCompilers[]
CCompilers[Full]
yields
{}
{{"Name" -> "Intel Compiler",
"Compiler" -> CCompilerDriver`IntelCompiler`IntelCompiler,
"CompilerInstallation" -> None,
"CompilerName" -> Automatic}, {"Name" -> "Generic C Compiler",
"Compiler" -> CCompilerDriver`GenericCCompiler`GenericCCompiler,
"CompilerInstallation" -> None, "CompilerName" -> Automatic}}
Attempting to Compile using CompilationTarget -> "C" produces the errors
- CreateLibrary::nocomp: A C compiler cannot be found on your system. Please consult the documentation to learn how to set up suitable compilers.
- Compile::nogen: A library could not be generated from the compiled function.
I consulted the documentation, but don't get anywhere.
PS: tried compiling using the new FunctionCompile but this produces much slower code than Compile without CompilationTarget -> "C"
Thanks, Eric