Page 1 of 1

'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 05.02.2019, 13:58
by duzenko
I have this error in 2007 and D7.2.4, only now it's manifesting as

Code: Select all

[DCC Error] ZDbcResultSet.pas(363): E2211 Declaration of 'GetULong' differs from declaration in interface 'IZResultSet'
[DCC Error] ZDbcResultSet.pas(363): E2211 Declaration of 'GetULongByName' differs from declaration in interface 'IZResultSet'
[DCC Error] ZDbcResultSet.pas(363): E2211 Declaration of 'UpdateULong' differs from declaration in interface 'IZResultSet'
[DCC Error] ZDbcResultSet.pas(363): E2211 Declaration of 'UpdateULongByName' differs from declaration in interface 'IZResultSet'
Full rebuild works, but ctrl-f9 fails on big projects

Any idea?

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 05.02.2019, 17:38
by marsupilami
Hello duzenko,

please make sure, you don't mix any dcu files or pas files from different versions of zeos. Also check your unit search paths please. In the end this is a misconfiguration of Delphi.

Best reagards,

Jan

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 05.02.2019, 17:48
by duzenko
Goes without saying that I cleared a few times the dcu's and I fully deleted the Zeos folder and uncompressed from downloaded zip afresh

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 05.02.2019, 18:07
by marsupilami
Well - I do understand your point but if Shift-F9 works and Ctrl-F9 fails the problem is not in the Zeos source code. Otherwise both ways of compiling Zeos would fail.

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 06.02.2019, 10:20
by duzenko
Right

I seem to be able to workaround it if I comment out this line in zeos.inc

Code: Select all

//          {$UNDEF WITH_UINT64_C1118_ERROR}            //2006+ has no proplems to assign code constants for UInt64
Can we have a way to force the WITH_UINT64_C1118_ERROR regardless the delphi version?

Re: 'GetULong' differs from declaration in interface 'IZResultSet'

Posted: 11.02.2019, 08:36
by Fr0sT
Apparently 2007 does have troubles with uint64... though it usually looks like internal error.
Can we have a way to force the WITH_UINT64_C1118_ERROR regardless the delphi version?
This don't seem like right decision.