Vincent Snijders a écrit :
bouquinique wrote:
Burkhard Carstens a écrit :
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
That's work. Thank's
Can you create a patch?
Unfortunately i'm a bad coder. I can use lazarus for create some dbf
applications but no more. I've spend some times before understand that:
""""""put "class" keyword in front of the functions in implementation
part of the unit. """"""
And after few tests and compilations errors i just add
class before all functions in implementation and thatt's work.
It's a little off topic here but i think that documentaion lazarus and
fpc have a problem. We can find for beginer or for expert, nothing
beetwen the two. Delphi or kylix documentation can be usefull but not
for all. Another thing, for french people which have difficulites to
read and write english it's again more limited.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives