CCompilerDriver`
CCompilerDriver`

$CCompiler

$CCompiler

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

更多信息和选项更多信息
  • 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.
  • 范例

    基本范例  (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

    参见

    CreateLibrary  CreateExecutable  CreateObjectFile  CCompilers

    教程