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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4fa6947d273daad1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q21g2000yqm.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: newbie ada question Date: Tue, 23 Mar 2010 00:59:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5e0df800-643b-4a28-9ada-1ccd54f41635@q21g2000yqm.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1269331183 18675 127.0.0.1 (23 Mar 2010 07:59:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 Mar 2010 07:59:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q21g2000yqm.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9693 Date: 2010-03-23T00:59:43-07:00 List-Id: Robin wrote on comp.lang.ada: > How can I design an ada library that other ada programs can include > and how do I include the library in the other ada files? This depends on your compiler and host operating system. If you are more specific, then someone can give you a "recipe". Generally speaking, you write your library as a set of Ada packages, separating specifications from bodies, and you compile all these bodies into a library. You then provide the specifications for use by the programs. Some compilers require that you also provide the bodies for generic units. -- Ludovic Brenta.