[fpc-devel] fpc 2.2.4: function header doesn't match any method

Jeppe Johansen jepjoh2 at kom.aau.dk
Fri Nov 20 21:34:03 CET 2009


Peter Beisel skrev:
> Hi,
> I'm changing from FPC1.0.6 to 2.2.4 and recompiling my project.
> (compiling with 1.0.6 works fine)
>
> Compiling with 2.2.4 following error message occures:
> "Error: function header doesn't match any method of this class 
> 'constructor TProgrammAuswahl.init( ...)' "
>
> But this is exactly the constructor defined in the object declaration.
> Do you have any ideas?
>
> target: go32v2
> Compiler mode: object pascal extension on
>
> Reduced file attached: tobs.pas
> error: line 212
>
> Regards Peter
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
The order of the paramters has to be the same


constructor TProgrammAuswahl.init(
titel : String;
x1, y1, zeilen, spalten: word;
..

is not the same as

constructor init(
x1, y1, zeilen, spalten: word;
titel : String;
...

Regards,
Jeppe Johansen



More information about the fpc-devel mailing list