Linker question lazarus / 13-General ---------------------------------------------------------------------- MageSlayer · 2006-08-03 08:14 Hi, All. Sorry for disturbing, but I have no Lazarus installed at my work machine now. I'd like to know, how Lazarus linker copes with next piece of code: Code: [Select] type   TBaseClass = class     public       procedure Virt;virtual;       procedure Dyn;dynamic;   end; procedure TBaseClass.Dyn; begin   ShowMessage('Dyn'); end; procedure TBaseClass.Virt; begin   ShowMessage('Virt'); end; var C:TBaseClass; begin   C:=TBaseClass.Create;   C.Free; end. Does it include TBaseClass.Dyn and TBaseClass.Virt procedure in executable or it is smart enough to see that no signature touched and leave them unlinked? ---------------------------------------------------------------------- felipemdc · 2006-08-03 16:56 The currently utilized linker is the GNU Linker, and it is not smart enougth to eliminate virtual methods. So yes, they will be included. This will be fixed on the future with the internal linker. To be completely sure you can just try different compile options to compile your program. There is a command line on unix that will show all the procedures and methods of a executable, then you can just search and see what was included. You can find which command by searching Free Pascal mailling list archives. ---------------------------------------------------------------------- MageSlayer · 2006-08-04 05:56 Thanks for answering. Looking foward for the internal linker.