[fpc-pascal] Events doesn't work in .lpr ?

2009-12-11 Thread Benedikt Schindler
Hi, i wrote a short test programm, to find out how to use the lnet unit. And now i got some strange compiler messages. (FPC 2.2.2 for i386.) The source Code is very short. So i just atached the hole cource code. i got 2 compiler messsages and i think they are directly connected. Here they are:

Re: [fpc-pascal] Events doesn't work in .lpr ?

2009-12-11 Thread Jonas Maebe
On 11 Dec 2009, at 11:15, Benedikt Schindler wrote: The source Code is very short. So i just atached the hole cource code. i got 2 compiler messsages and i think they are directly connected. Here they are: SCServer.lpr(46,43) Error: Wrong number of parameters specified for call to

Re: [fpc-pascal] Events doesn't work in .lpr ?

2009-12-11 Thread Benedikt Schindler
I mean it is declared 4 lines earlier. where is the difference to the procedure DoRun ? The problem is that you are using Delphi/TP-style procvar syntax in source code compiled {$mode objfpc}. Either add @ in front of DoOnReciveCommand when assigning it to DoRun, or change {$mode objfpc}

Re: [fpc-pascal] Make Pascal library usable for C (on Linux)

2009-12-11 Thread Jonas Maebe
On 10 Dec 2009, at 20:27, Matthias Klumpp wrote: I write C-headers for a library written in Pascal at time, to make it usable within C applications. On Linux, the libtool-program (part of GNU autotools) generates the necessary files for C-compilers to link against the library (libxyz.la,

Re: [fpc-pascal] Make Pascal library usable for C (on Linux)

2009-12-11 Thread Matthias Klumpp
On Fri, 11 Dec 2009 15:48:49 +0100, Jonas Maebe jonas.ma...@elis.ugent.be wrote: I think you better ask that on a libtool mailing list. I have no idea what libtool requires from a compiler, how it determines what to put in those .la and .pc files, etc. There is no explicit libtool support

[fpc-pascal] Class Operators

2009-12-11 Thread Andreas Schneider
Hi, since my reported bug (http://bugs.freepascal.org/view.php?id=15315) seems to turn out to be by design, a question came up: are there any plans to implement class operators? In delphi they are implemented to allow operators to affect instances of classes. This would also enable to write