When compiling the first file (flexcel_core_lazarus.lpk), an error occurs:
__FlexCelVersionSpecific.pas(101,14) Error: Function header doesn't match the previous declaration "Compare(constref UnicodeString;constref UnicodeString):System.LongInt;"
When compiling the first file (flexcel_core_lazarus.lpk), an error occurs:
__FlexCelVersionSpecific.pas(101,14) Error: Function header doesn't match the previous declaration "Compare(constref UnicodeString;constref UnicodeString):System.LongInt;"
Hi,
Just to make sure, can you tell me the version of Lazarus/fpc you are using?
Right now it should be lazarus trunk, as FlexCel won't compile in stable. If that is the case, they might have changed something in the object definition, I'll look at it.
If you are trying with stable, as said above, sadly we require trunk as stable still doesn't have all the stuff we need.
sorry, I just realized the post said it was trunk in the title. I'll check it here later today, something might have changed in the latest trunks.
Hi,
I've tried it and indeed I can reproduce it with the latest trunk. They seem to have changed the "constref" definitions in Equals, etc, back to consts.
There are sadly more changes than this, so I can't tell you a simple way to fix this. We will be releasing a new version to compile with this newer trunk as soon as we can.
Ok, thank you very much. I will reap!
Hi,
I looked more in detail at the issue, and it is more complex than I expected:
So I think we will wait a week or more here to see if at least the macos trunk is updated (problem 3) and the windows trunk is more stable (problem 2). I have kind of lost hope of seeing a stable lazarus supporting anonymous methods (problem 1)
The workaround I can think is to roll back lazarus a little and instead of using the current trunk use say the 2195 that is in macos, there FlexCel should compile fine. But I am not sure if this is possible with fpcdeluxe