Re: Recognize my GCC installation.
- To: mathgroup at smc.vnet.net
- Subject: [mg119947] Re: Recognize my GCC installation.
- From: "Oleksandr Rasputinov" <oleksandr_rasputinov at hmamail.com>
- Date: Thu, 30 Jun 2011 20:41:28 -0400 (EDT)
- References: <iug6me$9m3$1@smc.vnet.net>
I can't comment on the Mac platform, but GCC is working for me on Windows, so presumably should work on other platforms when set up correctly. For Compile, CompilationTarget -> C should be CompilationTarget -> "C". If this still doesn't work, try SetOptions[CreateLibrary, "ShellCommandFunction" -> Print, "ShellOutputFunction" -> Print ] and note any error messages produced when attempting to compile a library. On Wed, 29 Jun 2011 22:50:06 +0100, Nicholas Goble <ngoble at iwu.edu> wrote: > I'm at wits end trying to compile to C code. CompilationTarget->C yields > an error. CreateLibrary always ends in *failed. However, CCompilers[] > outputs this: > > {{"Name" -> "GCC", > "Compiler" -> CCompilerDriver`GCCCompiler`GCCCompiler, > "CompilerInstallation" -> "/usr/bin", "CompilerName" -> Automatic}} > > I've uninstalled and reinstalled GCC (Xcode), and it still doesn't seem > to work in Mathematica (by the way, I'm on a mac running Mathematica 8). > Any thoughts/help? > > Nick G.