Won't compile (Laz 0.9.10b, FPC 2.0.0)

Help
2005-10-16
2013-04-29
  • John Brookes
    John Brookes
    2005-10-16

    After setting up appropriate includes, I'm receiving the following error messages upon compile.

    "Compile IDE (without linking)" completed
    C:\lazarus\components\sockets\SocketClient.pas(265,33) Error: Illegal qualifier
    C:\lazarus\components\sockets\SocketClient.pas(265,55) Error: Illegal qualifier
    C:\lazarus\components\sockets\SocketClient.pas(265,77) Error: Illegal qualifier
    C:\lazarus\components\sockets\SocketClient.pas(265,99) Error: Illegal qualifier
    C:\lazarus\components\sockets\SocketClient.pas(505,23) Hint: Local variable "c" does not seem to be initialized
    C:\lazarus\components\sockets\SocketClient.pas(534) Fatal: There were 4 errors compiling module, stopping

     
    • Changing line 265 to:
                   tmp:=intToStr(tmp1.s_bytes[1])+'.'+intToStr(tmp1.s_bytes[2])+'.'+intToStr(tmp1.s_bytes[3])+'.'+intToStr(tmp1.s_bytes[4]);

      fixes the compilation on my windows xp installation.

      I guess the type definition of in_addr changed since this component was written.