Re: [fpc-pascal] Linker error on simple program (windows)

2021-06-24 Thread Sven Barth via fpc-pascal
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

[fpc-pascal] Linker error on simple program (windows)

2021-06-23 Thread Bart via fpc-pascal
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