comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Shared library project
Date: Thu, 10 Jun 2010 15:48:56 +0200
Date: 2010-06-10T15:48:56+02:00	[thread overview]
Message-ID: <1dcpow837u64h$.ujn5hjmxak87$.dlg@40tude.net> (raw)
In-Reply-To: f1b00644-6189-45d5-ac67-92164a3ead88@q12g2000yqj.googlegroups.com

On Thu, 10 Jun 2010 05:50:17 -0700 (PDT), Andrei Krivoshei wrote:

> The dinamic library project, say A project, (the final product)
> shoould import some another project, say B project, (collection of
> functions and objects- tagged records and etc).
> I am myself the author of the both projects, therefore for me doesn't
> matter what kind of project I select for B. But the final library
> project must be compiled correctly.
> 
> Ok, if "A library project can only import library projects.", then why
> I cannot import the static library project into dynamic library
> project?

That depends on the linker and loader capacities of the given OS. In the
worst case you have to distinguish the library build project and the
library import project. (These can be physically one gpr file, though) The
former can import anything. The latter describes a library which is already
linked and can only be loaded, but not re-linked. In this case it may not
depend on a static library.

> Thus, if I want to build the dynamic library project, which uses
> another projects, then I need to change the type of those projects to
> 'dynamic', and consequently, the resulting library, A.dll (for the
> Windows) MUST be supplyed by whole complect of others libraries
> (B.dll, C.dll, ...), which were imported into project A?

No, you can build a library as you wish. It can incorporate other projects,
i.e. became one big lump, or else refer to other projects in the form of
dynamic libraries. The choice is up to you.

When your library is to be used by in other projects you describe it
appropriately for them (using Externally_Built set to true).

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2010-06-10 13:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 11:05 Shared library project AndreiK
2010-06-02 11:09 ` AndreiK
2010-06-02 11:46   ` Yannick Duchêne (Hibou57)
2010-06-09 11:33     ` AndreiK
2010-06-09 14:24       ` Yannick Duchêne (Hibou57)
2010-06-10  5:10         ` AdaMagica
2010-06-10 12:50         ` Andrei Krivoshei
2010-06-10 13:04           ` Yannick Duchêne (Hibou57)
2010-06-10 19:53             ` Simon Wright
2010-06-10 13:48           ` Dmitry A. Kazakov [this message]
2010-06-02 12:02   ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox