V2EX  ›  英汉词典

Compiler Error

定义 Definition

“Compiler error” 指编译器在把源代码转换成可执行程序(或中间代码)时发现的问题,因此编译失败或无法继续生成目标文件。常见原因包括语法错误、类型不匹配、缺少依赖、未声明的变量等。(与 runtime error “运行时错误”相对,后者通常在程序运行过程中才出现。)

发音 Pronunciation (IPA)

/kəmˈpaɪlər ˈɛrər/

例句 Examples

I got a compiler error because I forgot a semicolon.
我因为忘了写分号而遇到了编译器错误。

The compiler error points to a type mismatch, so the function can’t accept that argument.
这个编译器错误指向类型不匹配,因此该函数无法接受那个参数。

词源 Etymology

compiler 来自动词 compile(“汇编、编译、汇集”),源于拉丁语词根 com-(“一起”)+ pilare(“堆叠、聚集”一类含义的演变),在计算机语境中固定为“把代码编译成机器可执行形式的程序”。error 来自拉丁语 error(“偏离、错误”)。合在一起,“compiler error” 就是“编译过程中出现的错误”。

相关词 Related Words

文学与作品 Literary Works

  • The C Programming Language(Kernighan & Ritchie):讨论编译与错误信息、编译诊断的经典教材语境中常出现该术语。
  • Structure and Interpretation of Computer Programs(SICP):在解释语言实现与程序错误时常涉及编译/解释阶段的错误。
  • Code Complete(Steve McConnell):在构建、调试与缺陷管理的章节中常谈到编译期错误与质量控制。
  • The Pragmatic Programmer(Andrew Hunt & David Thomas):在工程实践中涉及构建失败与编译错误的处理方式。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1847 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 15:54 · PVG 23:54 · LAX 07:54 · JFK 10:54
♥ Do have faith in what you're doing.