[fpc-devel] FPC_HAS_CONSTREF

Marcos Douglas md at delfire.net
Thu Oct 21 21:05:53 CEST 2010


Hi,
I updated my FPC (2.5.1) and Lazarus (0.9.29 rev 27706) and, now, I can't
compile the Zeos package (ver 6.6.6).

The error is:
[...]\zeos\6.6.6-stable\src\core\ZClasses.pas(84,22) Error: No matching
implementation for interface method "IUnknown.QueryInterface(constref
TGuid,out <Formal type>):LongInt; StdCall;" found

There is, in objpash.inc, line 246:
function QueryInterface({$IFDEF
FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} iid : tguid;out obj) :
longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};

What is "constref", where was defined FPC_HAS_CONSTREF and how use this?

Thanks,

Marcos Douglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20101021/65d3a752/attachment.html>


More information about the fpc-devel mailing list