“compile error”指编译错误:源代码在被编译器转换成可执行程序/目标文件的过程中,因语法、类型不匹配、缺少符号定义等问题而被编译器检测到并报错,导致编译失败。(不同于运行后才出现的 runtime error。)
/kəmˈpaɪl ˈerər/
I got a compile error after adding that line.
我加了那一行之后出现了编译错误。
The build failed with a compile error because the function was declared in one file but defined with a different parameter type in another.
构建失败并报了编译错误,因为这个函数在一个文件里声明了,但在另一个文件里定义时参数类型不一致。
compile 来自拉丁语 compilare,有“汇集、整理”的含义,后来在计算机语境中引申为“把源代码整理并转换为机器可执行形式”。error 来自拉丁语 error,意为“偏离、错误”。合在一起,“compile error”就是“在编译(转换)过程中发现的错误”。