Eclipse-什么是Builder? [英] Eclipse - What is exactly a Builder?

查看:178
本文介绍了Eclipse-什么是Builder?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不了解CDT中到底是什么构建器,以及与 C / C ++构建内容之间的关系。

I don't understand what is exactly a builder in CDT, and what is the relationship with the "C/C++ Build" content.

我设置了SCons在 C / C ++ Build配置中。它的确起作用:我进行了两种配置(发布和调试),并且启动了SCons脚本。但是,当我现在尝试调试时,我正在研究这些Builders stauuf(我正在发现Eclipse ...)。

I set up SCons in the "C/C++ Build" confuguration. It does work : I made two configurations (release and debug), and my SCons scripts are launched. But as I try now to debug, I am studying these Builders stauuf (I am discovering Eclipse...).

关于这一点的文档还不清楚。

The documentation is not clear at all about this point.

感谢帮助。

推荐答案

我不确定您的问题是什么,但我将尝试解释构建器的工作原理。

I'm not exactly sure what your problem is, but I'll try to explain how builders work.

任何Eclipse项目中都有零个或多个构建器,并且在Eclipse时(按顺序)调用它们建立一个项目。有多种类型的构建器可以执行不同的任务,例如调用外部构建工具或验证XML文件。您可以根据需要定义自己的构建器。

Any Eclipse project has zero or more builders, and they are invoked (in order) when Eclipse builds a project. There are different kinds of builders which do different things, such as invoking an external build tool or validating an XML file. You can define your own builders if you want.

CDT项目通常有两个构建器。第一个是CDT构建器,它负责编译您的代码。如果您使用的是外部构建工具,则很可能会使用 makefile项目,在这种情况下,CDT构建器只是为您调用了构建工具。默认情况下,这称为 make,但您可以在项目设置中对其进行更改。

A CDT project typically has two builders. The first one is the CDT builder which is responsible for compiling your code. If you are using an external build tool you are most likely using a "makefile project", in which case the CDT builder simply invokes your build tool for you. This is by default called "make", but you can change it in the project settings.

第二个构建器是扫描程序发现构建器。该构建器的目的是试图弄清楚索引器所使用的包含路径等,以便自动完成等。如果您使用外部工具,则可能需要自己设置这些在路径和符号选项卡下。

The second builder is the "scanner discovery" builder. The purpose of this builder is to try to figure out which include paths etc. to use for the indexer so that auto-completion will work, etc. If you are using an external tool, chances are that you will need to set up these yourself under the "Paths and Symbols" tab.

在调试时通常不涉及构建器,但是如果构建系统不放置已编译的二进制文件,则可能会遇到麻烦在CDT期望的地方。项目属性中应该有一个选项卡,您可以在其中配置CDT查找二进制文件的方式/位置。

Builders are in general not involved when debugging, but you may run into trouble if the build system doesn't put the compiled binaries in a place where CDT expects. There should be a tab in the project properties where you can configure how/where CDT looks for binaries.

这篇关于Eclipse-什么是Builder?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆