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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!q12g2000yqj.googlegroups.com!not-for-mail From: Andrei Krivoshei Newsgroups: comp.lang.ada Subject: Re: Shared library project Date: Thu, 10 Jun 2010 05:50:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9dcc29a0-fb04-4a2a-9f3a-1678a509358c@o4g2000vbo.googlegroups.com> <22fd730b-88c1-4d04-9eaf-8c21d802faec@t10g2000yqg.googlegroups.com> NNTP-Posting-Host: 193.40.240.135 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1276174217 15094 127.0.0.1 (10 Jun 2010 12:50:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Jun 2010 12:50:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q12g2000yqj.googlegroups.com; posting-host=193.40.240.135; posting-account=kfQcmwoAAAAImQIpF8z0neulU3uSEwPV User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:12555 Date: 2010-06-10T05:50:17-07:00 List-Id: > What was your original intent please? My original intent: 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? If I try do this, the gnatmake gives: [mlcb_fe_dll.gpr:3:09: shared library project "mlcb_fe_dll" cannot import static library project "sp_lib"] 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? With regards, Andrei