CCompilerDriver`
CCompilerDriver`

CCompilers

CCompilers[]

returns the list of C compilers supported for this version of the Wolfram Language that can be found on your system.

CCompilers[Full]

returns the list of all C compilers supported for this version of the Wolfram Language (but which may not actually be installed).

更多信息和选项更多信息
  • To use CCompilers, you first need to load it using Needs["CCompilerDriver`"].
  • The following option can be given:
  • "TargetSystemID"$SystemIDthe system for which the compilers should be checked
  • 范例

    基本范例  (1)

    First, load the package:

    In[1]:=
    Click for copyable input

    Show the compilers supported for this platform (Windows) that can be located:

    In[2]:=
    Click for copyable input
    Out[2]=

    Show all the compilers supported for this platform (Windows). Note that on this machine only Visual Studio is actually installed:

    In[3]:=
    Click for copyable input
    Out[3]=

    Show the compilers supported for Linux:

    In[4]:=
    Click for copyable input
    Out[4]=

    参见

    CreateLibrary  CreateExecutable  CreateObjectFile

    教程