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
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.
IIRC, when you install D2010 you choose whether to install Indy 9 or 10. This appears to me to be a case of your choosing to install Indy 9, but the library paths in the IDE are seeing the Indy10 source (or vice versa) while it's seeing the .DCUs for the other version in the Lib folder.
The easiest fix would be to reinstall Delphi, and make sure you choose Indy 10 so that the source and compiled .DCU files match. The other option is to uninstall Indy completely and then reinstall it from the source that @Deltics suggested above.
Doesn't Delphi 2010 ship with DCUs for Indy?
Why is dropping TIdHTTP on a form trying to compile the Indy sources? Did you add the path to the Indy source files to the Library Path?
My latest Delphi is 2009, but the folder with DCUs, $(BDS)\Lib\Indy10
, is near the top of the Library Path