From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eed2d3a237734411 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Shared library project Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <9dcc29a0-fb04-4a2a-9f3a-1678a509358c@o4g2000vbo.googlegroups.com> <22fd730b-88c1-4d04-9eaf-8c21d802faec@t10g2000yqg.googlegroups.com> Date: Thu, 10 Jun 2010 15:48:56 +0200 Message-ID: <1dcpow837u64h$.ujn5hjmxak87$.dlg@40tude.net> NNTP-Posting-Date: 10 Jun 2010 15:48:56 CEST NNTP-Posting-Host: cae5a51c.newsspool4.arcor-online.net X-Trace: DXC=7enW;^6ZC`4\`mfM[68DC34Ba71K`2=k= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:12561 Date: 2010-06-10T15:48:56+02:00 List-Id: 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