BDS2006和Zeos安装
我最近在 BDS2006 上为 Delphi 和 C++ 个性安装了 Zeos 6.6 稳定版。
为此,由于 Zeos 是用 Delphi 编写的,因此我在构建包时选中了“生成所有 C++ Builder 文件”。
我发现的问题是,不知何故,并非所有必需的 .DCU 都是在构建不同包的过程中生成的。我最终解决了这个问题,首先只为 Delphi 构建(工作完美),然后为 Delphi 和 C++ 重建。
现在,我不确定这是否是一个错误(在 Quality Central 或 Google 中没有找到类似的内容) )或者它仅影响 BDS2006 或其他 IDE。所以,问题是:任何人都可以告诉我什么可能会导致编译器在选中“生成所有 C++ Builder 文件”时不构建所有 .DCU,但在不选中“生成所有 C++ Builder 文件”时会这样做吗?
提前致谢并致以最诚挚的问候
I recently installed Zeos 6.6 stable on BDS2006 for both the Delphi and C++ personalities.
In order to do so, and since Zeos is written in Delphi, I checked the "Generate all C++ Builder files" when building the packages.
The problem I found was that, somehow, not all necessary .DCUs were generated during the building of the different packages. I finally worked around it by first building only for Delphi (which worked flawlessly) and then rebuilding for both Delphi and C++.
Now, I am not sure if this is a bug at all (did not find anything similar in Quality Central or Google) or it affects only BDS2006 or other IDEs too. So, question is: anyone can tell me what could cause the compiler not to build all the .DCU when "Generate all C++ Builder files" is checked, but do it when not?
Thanks in advance and best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我在 Zeos 论坛 中撰写的关于如何解决此问题的文章的摘录。希望它对其他人有帮助。
注意:这可能适用于 BDS2005、RAD2007 和其他 IDE 版本,也可能不适用。我无法测试它,因为我没有安装它。
免责声明:这些步骤可能不是最准确或最有效的。请随时评论您发现的任何错误或问题,我将更新帖子。
通过以下步骤,我成功地为 Delphi 和 C++ 个性安装了 Zeos:
构建目录(所有包都内置于此)到包的搜索路径。
仅供参考,步骤 5 中所需的键如下:
查找名为 MyPackage.bpl 的项并删除整个子项。
您现在应该已经安装了 Zeos,并且可以同时用于 Delphi 和 C++。
注意:在 C++ 中编译时,可能会出现错误,因为它找不到某些 .h。通常,可以通过将 #include 更改为 .hpp 来解决此问题。
This is an extract of an article I wrote in the Zeos forums regarding how I solved this problem. Hope it helps someone else.
NOTE: this may apply or not for BDS2005, RAD2007 and other IDE versions. I can not test it since I have none installed.
DISCLAIMER: these steps may not be the most accurate or efficient ones. Please feel free to comment any error or problem you can find and I will update the post.
With the following steps I managed to install Zeos for both Delphi and C++ personalities:
the Build directory (where all packages get built into) to the Search path of the package.
Just for info the keys you need in step 5 are following:
Look for the key called MyPackage.bpl and remove the entire sub-key.
You should have Zeos installed and working for both Delphi and C++ now.
NOTE: when compiling in C++ it may give you an error because it can not find some .h. Usually this gets solved by changing the #include to .hpp.