[fpc-pascal]Error compiling the unit Source code ssockets.pp
Stefan Becker
becker at lufa-sp.vdlufa.de
Mon Aug 19 23:48:00 CEST 2002
I'm receive the following error when compliling the unit's source.
Am I missing a compiler switch or something?
> fpc linux/ssockets.pp
Compiling for LINUX Platform
Compiling Debug Version
Target OS: Linux for i386
Compiling linux/ssockets.pp
Compiling ./linux/sockets.pp
sockets.inc(57,25) Hint: Parameter F not used
sockets.inc(120,27) Error: Can't assign values to const variable
sockets.pp(187) Fatal: There were 1 errors compiling module, stopping
The error happens here!
--------------------------------
Function DoConnect(Sock:longint;const addr: TInetSockAddr): Boolean;
begin ^^^^^
DoConnect:=Connect(Sock,Addr,SizeOF(TInetSockAddr));
end;
There must be way to compile this!
grateful for anyone's help!
Stefan
More information about the fpc-pascal
mailing list