Linker can't find all the RTTI info that the compiler referenced
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
{$MODE OBJFPC} { -*- text -*- }
program test;
uses typinfo;
type
TMyRecord = record end;
{$M+}
TMyClass = class
published
procedure MyMethod(MyArgument: TMyRecord); virtual;
end;
{$M-}
procedure TMyClass.MyMethod(MyArgument: TMyRecord);
begin
end;
var
X: PTypeInfo;
begin
X := TypeInfo(@TMyClass.MyMethod);
end.
=> Linker error:
test.o:(.data.n_RTTI_P
TEST_$_DEF5+0x1b): undefined reference to `RTTI_
PTEST_
$_TMYRECORD'
Mantis conversion info:
- Mantis ID: 24540
- Fixed in version: 3.0.0
- Fixed in revision: 27797 (#7e1c370c)