为什么使用Delphi 2010的内置Indy发行版会出现编译器错误? [英] Why do I get compiler errors using Delphi 2010's built-in Indy distribution?
问题描述
我刚刚安装了Delphi 2010,并且使用idHTTP组件遇到了一些麻烦。如果我将其放在窗体上并尝试进行编译,Delphi会说:
I have just installed Delphi 2010 and got some troubles with idHTTP component. If I drop it on form and try to compile, Delphi says that:
[DCC错误] IdCookieManager.pas(118):E2010不兼容的类型:'TIdCookieList '和'TIdCookieDomainList'
[DCC Error] IdCookieManager.pas(118): E2010 Incompatible types: 'TIdCookieList' and 'TIdCookieDomainList'
[DCC错误] IdCookieManager.pas(172):
E2003未声明的标识符:
'IsValidCookie'
[DCC Error] IdCookieManager.pas(172): E2003 Undeclared identifier: 'IsValidCookie'
[DCC错误] IdCookieManager.pas(236):
E2010不兼容的类型:
'TIdCookieList'和
'TIdCookieDomainList'
[DCC Error] IdCookieManager.pas(236): E2010 Incompatible types: 'TIdCookieList' and 'TIdCookieDomainList'
[DCC致命
错误] Unit4.pas(7):F2063
无法编译使用的单元
'IdCookieManager.pas'
[DCC Fatal Error] Unit4.pas(7): F2063 Could not compile used unit 'IdCookieManager.pas'
问题出在哪里?我就是不明白。 =(
Where is the problem? I just don't get it. =(
PS这是Embarcadero®Delphi®2010版本14.0.3593.25826
PS It's Embarcadero® Delphi® 2010 Version 14.0.3593.25826
推荐答案
The D2010附带的Indy版本不完整,尽管可能在后续更新中已修复。如果不是,或者使用的是未修补的Delphi,则这只是您可能会遇到的许多问题,具体取决于您使用Indy的哪个部分。
The version of Indy that came with D2010 was incomplete, though this may have been fixed in a subsequent update. If not, or if you are using an unpatched Delp this is only one of a number of problems you may encounter, depending on which parts of Indy you use.
我建议您确保您的Delphi已完全更新,并且还可以考虑从已锁定SVN服务器。
I suggest you ensure your Delphi is fully updated and possibly also consider getting the latest Indy 10 from the AtoZed SVN server.
这篇关于为什么使用Delphi 2010的内置Indy发行版会出现编译器错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!