Re: [fpc-pascal] How to use a static method as procedure variable?

2015-06-30 Thread Jonas Maebe
On 30/06/15 20:54, silvioprog wrote: The code above compiles fine in Delphi (tested in XE 7), but in FPC I got the following compiling error: Unit1.pas(46,14) Error: Incompatible types: got class method type of procedure({Open} Array Of Byte;out AnsiString) of object;Register expected

Re: [fpc-pascal] How to use a static method as procedure variable?

2015-06-30 Thread silvioprog
On Tue, Jun 30, 2015 at 4:22 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 30/06/15 20:54, silvioprog wrote: The code above compiles fine in Delphi (tested in XE 7), but in FPC I got the following compiling error: Unit1.pas(46,14) Error: Incompatible types: got class method type of

[fpc-pascal] How to use a static method as procedure variable?

2015-06-30 Thread silvioprog
Hello, Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private class var

Re: [fpc-pascal] Help building FPC on armhf

2015-06-30 Thread Andrew Brunner
On 06/29/2015 07:42 AM, Michael Ring wrote: I think I now remember having the same problem before, can you please try to build with -O- instead of -O2 ? I've had some success/progress with my Wandboard Quad Revision C. Thanks for all your help however there are still some issues. When