Sign in Join

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

Mailing lists / lazarus / 2002-01

New Win32 compile problems

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Marc Weustink
to Keith Bowes: Hi. I've just updated my Lazarus source and FPC compiler and here are the errors I get…
Keith Bowes wrote
* I also get this error: propedits.pp(1252,15) Error: Method (variable) and Procedure (variable) are not compatible. I don't know how to fix this one but if I comment that line out it compiles, so this is the last error.

I committed a workaround for it.

Changed:

     GetValues(TGetStrProc(AddValue));

Into:

     GetValues(TGetStrProc((@AddValue)^));

Marc

Reply by email

Keith Bowes

Hi. I've just updated my Lazarus source and FPC compiler and here are the errors I get when compiling:
* In the FileIsWritable function of both ideprocs.pp and components/codetools/fileprocs.pas, I get this error: Identifier not found FILENAME. To fix this, change 'FileGetAttr(Filename)' to 'FileGetAttr(AFilename)'.
* I also get this error: propedits.pp(1252,15) Error: Method (variable) and Procedure (variable) are not
compatible.
I don't know how to fix this one but if I comment that line out it compiles, so this is the last error.

Reply by email

Marc Weustink
to Marc Weustink: I committed a workaround for it. Changed: GetValues(TGetStrProc(AddValue)); Into:…
Stefan wrote 5 lines
On Wed, Jan 02, 2002 at 01:10:47AM +0100, Marc Weustink wrote: > > I committed a workaround for it. Really? I just updated from cvs but the code is still the same.

Uhhhh... they are in now. Sometimes I've to read what cvs says (and not ignore the error message :)

Marc

BTW: Strangely enough this problem only hit mit with your latest compiler (20011231). Is this a "feature" from the 1.1 branch?

Not only that one, i've seen it earlier here. I think it has something to do with:

2001-12-17 13:42 jonas
* compiler/: htypechk.pas, types.pas:
* added type conversion from procvar to procvar (if their arguments are convertable, two procvars are convertable too)

I'll check

Marc

Reply by email

Mattias Gaertner
to Keith Bowes: Hi. I've just updated my Lazarus source and FPC compiler and here are the errors I get…
Show quoted text 6 lines
Hi. I've just updated my Lazarus source and FPC compiler and here are the errors I get when compiling: * In the FileIsWritable function of both ideprocs.pp and components/codetools/fileprocs.pas, I get this error: Identifier not found FILENAME. To fix this, change 'FileGetAttr(Filename)' to 'FileGetAttr(AFilename)'.

Thx, fixed.

Show quoted text 5 lines
* I also get this error: propedits.pp(1252,15) Error: Method (variable) and Procedure (variable) are not compatible. I don't know how to fix this one but if I comment that line out it compiles, so this is the last error.

We don't know either.
This kind of bug is also available under linux. It seems to be a bug in the compiler. Just do an additional 'make' and compiling will continue. I was not able to reproduce this bug in a small example, so I didn't send a bug report yet. Have to talk to the fpc-team.

Mattias

Reply by email

Unknown author
to Keith Bowes: Hi. I've just updated my Lazarus source and FPC compiler and here are the errors I get…
Marc Weustink wrote 7 lines
At 02:59 01-01-02 -0500, Keith Bowes wrote: >* I also get this error: propedits.pp(1252,15) Error: Method (variable) and >Procedure (variable) are not compatible. >I don't know how to fix this one but if I comment that line out it >compiles, so this is the last error. I committed a workaround for it.

Really? I just updated from cvs but the code is still the same.

BTW: Strangely enough this problem only hit mit with your latest compiler (20011231). Is this a "feature" from the 1.1 branch?

bye,

Stefan

PS: Thanks for the compiler changes. I'll test it now.

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email