sets the default C compiler to use for operating on C code.
$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)
Needs["CCompilerDriver`"]Set the default compiler to be the Intel C compiler:
$CCompiler = CCompilerDriver`IntelCompiler`IntelCompiler;Set the default compiler to be the Intel C compiler and also set the location of the installation:
$CCompiler = {"Compiler" -> CCompilerDriver`IntelCompiler`IntelCompiler, "CompilerInstallation" -> "E:\\IntelCompiler"};相关指南
文本
Wolfram Research (2010),$CCompiler,Wolfram 语言函数,https://reference.wolfram.com/language/CCompilerDriver/ref/$CCompiler.html.
CMS
Wolfram 语言. 2010. "$CCompiler." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CCompilerDriver/ref/$CCompiler.html.
APA
Wolfram 语言. (2010). $CCompiler. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CCompilerDriver/ref/$CCompiler.html 年
BibTeX
@misc{reference.wolfram_2026_$ccompiler, author="Wolfram Research", title="{$CCompiler}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CCompilerDriver/ref/$CCompiler.html}", note=[Accessed: 10-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$ccompiler, organization={Wolfram Research}, title={$CCompiler}, year={2010}, url={https://reference.wolfram.com/language/CCompilerDriver/ref/$CCompiler.html}, note=[Accessed: 10-August-2026]}