简体   繁体   English

Eclipse中的C ++-什么是工具链?

[英]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.

相关问题 Eclipse for C++ 中的 Visual Studio 工具链 - Visual Studio toolchain in Eclipse for C++ Eclipse 找不到我的 C/C++ MinGW 工具链 - Eclipse can't find my MinGW toolchain for C/C++ 如果我使用带有C工具链的extern“C ++”会发生什么? - What happens if I use extern “C++” with a C toolchain? c ++:如何在eclipse中调试使用“Microsoft Visual C ++”工具链编译的C ++应用程序? - c++: How to debug a C++ application compiled using the “Microsoft Visual C++” toolchain in eclipse? Eclipse有两个C / C ++索引器(快速和完整):有什么区别? - Eclipse has two C/C++ indexers (fast & full): what's the difference? VSCode C ++为VC工具链配置 - VSCode c++ configuring for vc toolchain 构建 LLVM 10 C++ 工具链的问题 - Issues with building the LLVM 10 C++ toolchain 无法使用Mac OS上的Sourcelite Lite Edition工具链,C ++和Eclipse构建arm6 / arm7的静态库? - Unable to build static library for arm6/arm7 using sourcery lite edition toolchain, C++, Eclipse on Mac OS? Eclipse中C ++重构支持的状态是什么? - What is the state of C++ refactor support in Eclipse? 什么是大型C ++项目的推荐Eclipse CDT配置(索引器需要永远) - What's the recommended Eclipse CDT configuration for big C++ project (indexer takes forever)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM