Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-01

Compiling error 1.9.6 not in 1.0.10

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

jordi

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}
(Please, if you can answer use the list, otherwise I won't receive it. Thanks) Salutacions Jordi

Reply by email

Peter Vreman
to jordi
Show quoted text 15 lines
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.

Reply by email