Bart via fpc-pascal schrieb am Mi., 23.
Juni 2021, 18:59:
> The error goes away if I remove the inline directive from the function
> definition in the interface section, or if I also declare the other
> function (which gives the linker error) in the interface section.
>
The compiler shouldn't do
Given this unit:
unit ExtMath;
{$mode objfpc}
interface
function LeadingZeroBits(n: Byte): Integer; inline;
implementation
function LeadingZeroBits(n: QWORD; BitSize: Integer): Integer;
begin
Result := 0;
end;
function LeadingZeroBits(n: Byte): Integer;
begin
Result := LeadingZeroBits(Q