Am Donnerstag, 1. Juni 2006 15:58 schrieb Fedorax:
> Hello:
>
> With latest svn imagesforlazarus.lpk retrun errors when compile.
>
> Svn's version's
> lazarus 9382
> fpc 3761
> Os:Linux fedora 5
>
>
> Error messages:
>
> "Compiler l'IDE (sans assemblage)" completed
> /usr/local/src/lazarus/components/images/lazpng.pas(48,20) Error:
> function header doesn't match the forward declaration "class
> TPNGImage.GetDefaultFPReader:Class Of TFPCustomImageReader"
> /usr/local/src/lazarus/components/images/lazpng.pas(53,20) Error:
> function header doesn't match the forward declaration "class
> TPNGImage.GetDefaultFPWriter:Class Of TFPCustomImageWriter"
> /usr/local/src/lazarus/components/images/lazpng.pas(63,20) Error:
> function header doesn't match the forward declaration "class
> TPNGImage.GetFileExtensions:AnsiString"
> /usr/local/src/lazarus/components/images/lazpng.pas(81) Fatal: There
> were 3 errors compiling module, stopping

The methods are defined as "class function" in the interface part of the 
unit, but not in the implementation part. earlier version of the 
compiler ignored this bug, but current version don't.
Solution:
put "class" keyword in front of the functions in implementation part of 
the unit.

regards,
  Burkhard

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to