Compilation Problem in Kylix with Indy10


2005-03-10 11:39:01 PM
kylix2
Hi,
i was trying to compile Indy10 with Kylix-Pro.
in the installation-manual at Step 4c) i get this Error:
Errors:
-------------------
[Error] IdDNSServer.pas(4132): Incompatible types: 'Integer' and
'__socket_type'
[Fatal Error] IndyProtocolsK3.dpk(246): Could not compile user unit
'IdDNSServer.pas'
-------------------
Code:
-------------------
repeat
try
BBinding.Port := 53;
BBinding.AllocateSocket(Id_SOCK_DGRAM);
Binded := True;
except
end;
until Binded;
-------------------
... i replace this codepart with this:
MyNew-Code:
-------------------
repeat
try
BBinding.Port := 53;
BBinding.AllocateSocket(Integer(Id_SOCK_DGRAM));
Binded := True;
except
end;
until Binded;
-------------------
and it works ;-)
Danijel