CCompilerDriver`
CCompilerDriver`

$CCompiler

$CCompiler

sets the default C compiler to use for operating on C code.

Details

  • To use $CCompiler, you first need to load it using Needs["CCompilerDriver`"].
  • You can assign $CCompiler to the name of a C compiler, or to a list of C compiler options.

Examples

Basic Examples  (1)

First, load the package:

In[1]:=
Click for copyable input

Set the default compiler to be the Intel C compiler:

In[2]:=
Click for copyable input

Set the default compiler to be the Intel C compiler and also set the location of the installation:

In[3]:=
Click for copyable input

See Also

CreateLibrary  CreateExecutable  CreateObjectFile  CCompilers

Tutorials