Search code examples
delphiindy

Why do I get compiler errors using Delphi 2010's built-in Indy distribution?


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 Error] IdCookieManager.pas(118): E2010 Incompatible types: 'TIdCookieList' and 'TIdCookieDomainList'

[DCC Error] IdCookieManager.pas(172): E2003 Undeclared identifier: 'IsValidCookie'

[DCC Error] IdCookieManager.pas(236): E2010 Incompatible types: 'TIdCookieList' and 'TIdCookieDomainList'

[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 It's Embarcadero® Delphi® 2010 Version 14.0.3593.25826


Solution

  • 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 Delphi, this is only one of a number of problems you may encounter, depending on which parts of Indy you use.

    I suggest you ensure your Delphi is fully updated and possibly also consider getting the latest Indy 10 from the AtoZed SVN server.