[fpc-pascal]Strange Compiler Bug
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Feb 28 15:09:54 CET 2002
On Thu, 28 Feb 2002 14:47:21 +0100
Pierre Muller <pierre at freepascal.org> wrote:
> At 14:40 28/02/2002 , vous avez écrit:
> >On Thu, 28 Feb 2002 14:25:03 +0100
> >Pierre Muller <pierre at freepascal.org> wrote:
> >
> > > >codecompletiontool.pas(881,29) Error: Method (variable) and Procedure (variable) are not compatible
> > > >codecompletiontool.pas(881,29) Error: Method (variable) and Procedure (variable) are not compatible
> > > >codecompletiontool.pas(1297) Fatal: There were 2 errors compiling module, stopping
> > >
> > > This might be due to a problem with
> > > the compilation mode :
> > > do some of your units have {$mode xxx}
> > > set ?
> >
> >Yep, every single one has {$mode objfpc}.
> I didn't read the message correctly....
>
> You have a conflict between a method and a function....
>
> Are there several CompareCodeTreeNodeExtWithPos in your program?
> Maybe one function in some other unit
> that is found before the method ??
Don't think so. I'm using quite long names to prevent such things.
There is also another function CompareCodeTreeNodeExt with exactly the same declaration just in front of CompareCodeTreeNodeExtWithPos. But that would not explain this error.
Mattias
More information about the fpc-pascal
mailing list