[Lazarus] Using a component OBJ file in Lazarus?
Michael Schnell
mschnell at lumino.de
Tue Jun 12 11:48:20 CEST 2018
On 12.06.2018 11:30, Sven Barth via Lazarus wrote:
> Only because the code is part of a package that's loaded by the
> Delphi IDE does not mean that it also is one in the final Delphi
> program. Delphi package distributions more often than not also contain
> the DCU for static linking.
Of course you are correct that in Delphi a package can be linked
dynamically to the IDE (it can't be linked statically, as the IDE never
is recompiled), but statically in the final executable.
But Lazarus does not provide dynamic linking to the IDE in such a way.
That is why the IDE needs to be recompiled when adding a package with
"design time stuff". (IMHO this is not harmful at all.)
Am I wrong supposing that this means that the package will be statically
linked to both the IDE and the executable, and hence it content will be
linked in with both ?
AFAIU, there are means to control how the code is executed at runtime
and how at design time, but this does not affect linking.
Hence the dongle code will be linked in with the IDE and might (or might
not) provide problems.
-Michael
More information about the Lazarus
mailing list