Menu

#320 Min(): Cannot determine overload function.

7.2.4
closed
None
2019-03-15
2018-12-05
No

Hi there,

I'm on FPC/Lazarus trunk, currently FPC 3.3.1 and Lazarus 2.1.0 with Ubuntu 18.10 64 bits.
FPC/Lazarus is installed with fpcupdeluxe from v1.6.2g.
Sources are 7.2.4-stable downloaded today (2018/12/05) from sf.net.

On ZDbcInterbase6Statement.pas line 265 (TZInterbase6PreparedStatement.Create) you're using:
FZBufferSize := Min(FZBufferSize, FIBConnection.GetXSQLDAMaxSize);

FZBufferSize is LongWord and Min only has Integer, Int64 and QWord as overloaded and from my setup, LongWord won't "fit" (auto casting) in any of those.

The error is:
"ZDbcInterbase6Statement.pas(265,19) Error: Can't determine which overloaded function to call"

I haven't followed the whole build up to 64 bit Integer and all it's names. I'm not even sure if this is in that category. AND I don't even know if I could just fix it by casting to QWord or Inte64.

What can you advise?

Many thanks in advance!!
Gus

Discussion

  • marsupilami79

    marsupilami79 - 2018-12-11

    Hello Gustavo,

    we currently don't test against moving targets like FPC 3.3 and Lazarus 2.1. You could try the current development version of Zeos from SVN: https://sourceforge.net/p/zeoslib/code-0/HEAD/tree/branches/testing-7.3/

    Best regards,

    Jan

     
  • EgonHugeist

    EgonHugeist - 2018-12-21

    I think jan is right. The fix for the FPC bug should be resolved in SVN versions already.

     
  • EgonHugeist

    EgonHugeist - 2019-03-15
    • assigned_to: EgonHugeist
     
  • EgonHugeist

    EgonHugeist - 2019-03-15

    No response..

     
  • EgonHugeist

    EgonHugeist - 2019-03-15
    • status: open --> closed
     

Log in to post a comment.