On Fri, Sep 14, 2012 at 10:34 PM, Mark Morgan Lloyd
<[email protected]> 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.

Juha

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to