Sign in Join

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

Mailing lists / fpc-devel / 2009-11

fpc 2.2.4: function header doesn't match any method

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Peter Beisel

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

Reply by email

Jeppe Johansen
to Peter Beisel
Peter Beisel wrote 24 lines
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 - 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

Reply by email