Delphi IDE项目“清洁”命令 - 它做什么? [英] Delphi IDE Project "Clean"Command -- What does it do?

查看:352
本文介绍了Delphi IDE项目“清洁”命令 - 它做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Delphi 2007(可能还有其他版本,我猜猜),如果我右键单击项目管理器中的一个项目(在这种情况下是BPE的EXE),上面有一个清洁命令编译和构建。

Running Delphi 2007 (and probably other versions as well, I'm guessing), if I right-click on a project in the Project Manager (either EXE of BPL in this case), there is a "Clean" command above Compile and Build. What exactly does it do?

推荐答案

清理构建意味着删除编译器生成的所有中间和输出文件。一些编译器或IDE也有一个干净&构建或重建所有选项,它基本上执行一个干净,然后是一个构建。

To "clean" a build means to delete all intermediate and output files generated by the compiler. Some compilers or IDEs also have a "clean & build" or "rebuild all" option which essentially performs a clean, followed by a build.

项目,编译器一般只重建文件,它确定是改变还是新的。这当然是通过每次不完全重新编译整个项目来节省时间。然而,有时这有问题;你会发现你的程序得到奇怪的错误或不正常工作。这随着项目中依赖项的数量而增加 - 它们可能无法正确重建。在这种情况下,您会发现清除输出并从头开始重新构建将解决问题。

When you rebuild an existing project, compilers generally only rebuild files it determines are changed or new. This is, of course, to save time by not completely recompiling the entire project each time. However, sometimes this has problems; you will find your program getting strange errors or not working right. This increases with the number of dependencies within your project - they may not be rebuilt properly. In this case, you will find that cleaning the output and re-building from scratch will solve the problem.

通常建议在构建任何版本之前先清理出于同样原因的版本。

It is also generally recommended to do a clean before building any release versions for the same reason.

这篇关于Delphi IDE项目“清洁”命令 - 它做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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