[fpc-pascal] Compiling error 1.9.6 not in 1.0.10

Peter Vreman peter at freepascal.org
Mon Jan 17 12:21:47 CET 2005


> 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.









More information about the fpc-pascal mailing list