> Hi, I get the next error when compiling synsock.pas from Ararat synapse
> with fpc version 1.9.6 :
>
> synsock.pas(991,59) Fatal: Syntax error, ":" expected but ";" found
>
> "older" versions of fpc (1.0.10) compiled this unit fine. Is there a way
> to compile this without changing code?
>
>
> The wrong line is the last one:
>
>  WSAStartup: function(wVersionRequired: Word; var WSData: TWSAData):
> Integer
>     {$IFNDEF FPC}{$IFDEF LINUX}cdecl{$ELSE}stdcall{$ENDIF} = nil;
>     {$ELSE}= nil;{$IFDEF LINUX}cdecl{$ELSE}stdcall{$ENDIF};{$ENDIF}

That is a bug in 1.0.x. FPC 1.9.6 is more delphi compatible. Remove the
$ifndef fpc and it'll work with 1.9.6.






_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to