[英]C++ in Eclipse—What's a toolchain?
In Eclipse, to build/run a C++ project, I needed to make Mac OS X GCC the default toolchain. 在Eclipse中,要构建/运行C ++项目,我需要将Mac OS X GCC设置为默认工具链。 What is a toolchain, and why did I have to do this? 什么是工具链,为什么我必须这样做?
Eclipse doesn't bring its own C++ compiler, so you have to specify it in preferences. Eclipse没有自带C ++编译器,因此您必须在首选项中指定它。 And since compiler, linker and debugger depend more or less upon each other, these have to be specified too. 而且由于编译器,链接器和调试器或多或少地相互依赖,因此也必须指定它们。 That's what is called a toolchain : the set of tools (compiler, debugger, linker) that you want to use with eclipse. 这就是所谓的工具链 :您想与Eclipse一起使用的一组工具(编译器,调试器,链接器)。
You have to set up the toolchain because for most platforms there is more than one available. 您必须设置工具链,因为对于大多数平台而言,可用工具不止一个。
Toolchains are the required tools to successfully run a code. 工具链是成功运行代码所必需的工具。 A normal IDE support a large variety of toolchains (compiler, debugger, linker, etc) and since they need them to work to run the code you must specify them before. 普通的IDE支持多种工具链(编译器,调试器,链接器等),并且由于它们需要它们来运行代码,因此您必须在之前指定它们。
**Note:**Its nit something eclipse specific but its a general term for IDEs **注意:**它特定于Eclipse,但它是IDE的总称
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.