What units in a package are linked? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- eny · 2010-02-23 09:49 When a non-designtime package is created with let's say 20 units, and only one of the units is used in a program (the units are autonomous, so no other dependencies). Will all 20 units be linked into the resulting program? Or only the actually used unit(s)? The wiki page on packages explains a lot but not this particular question. ---------------------------------------------------------------------- Leledumbo · 2010-02-23 13:16 Only used units, and if you enable smartlinking, only used variables and routines are linked. ---------------------------------------------------------------------- eny · 2010-02-23 16:33 Thx for the update. Now I have no more excuses for not using packages