Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPC 3.2+ incompability - compiler error with addref / release #38

Open
TommySlokky opened this issue Sep 23, 2020 · 0 comments
Open

FPC 3.2+ incompability - compiler error with addref / release #38

TommySlokky opened this issue Sep 23, 2020 · 0 comments

Comments

@TommySlokky
Copy link

TommySlokky commented Sep 23, 2020

From https://forum.lazarus.freepascal.org/index.php/topic,51546.0.html

FPC 3.2.0 and newer is stricter in checking that interface methods do indeed match correctly. The correct declaration of _AddRef and _Release is as they are declared in IInterface:

Code: Pascal [Select][+]
function _AddRef : longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
function _Release : longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant