[Lazarus] "Running" a library
juha.manninen62 at gmail.com
Fri Sep 14 23:01:45 CEST 2012
On Fri, Sep 14, 2012 at 10:34 PM, Mark Morgan Lloyd
<markMLl.lazarus at telemetry.co.uk> wrote:
> No, I was wondering about the extent to which a library could be defined
> such that it was also runnable as a program.
A library cannot be run alone.
However there 2 kinds of libraries: a dynamic library (.dll, .so) and
a static library.
You can test your library code by creating a program that links the
code statically, or uses its code units directly.
Once it works well then you can make a dynamic library, but it still
needs some extra testing.
For example dynamic strings cannot be used across the calls, GUI
component usage is limited etc.
For this testing you must create the "Host application" which links
dynamically to the library.
More information about the Lazarus