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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.126.91 with SMTP id o27mr1827683pgn.133.1504123829176; Wed, 30 Aug 2017 13:10:29 -0700 (PDT) X-Received: by 10.36.67.12 with SMTP id s12mr117378itb.3.1504123829069; Wed, 30 Aug 2017 13:10:29 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u11no1812285qtu.1!news-out.google.com!a26ni18qta.0!nntp.google.com!v20no198720qtg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 30 Aug 2017 13:10:28 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:f900:453d:87a5:de7c:1786; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:f900:453d:87a5:de7c:1786 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <32727260-3d7d-42eb-acb0-0eeefb529c2b@googlegroups.com> Subject: How to make use of a static library and call functions in packages From: John Smith Injection-Date: Wed, 30 Aug 2017 20:10:29 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1650 X-Received-Body-CRC: 3835013777 Xref: news.eternal-september.org comp.lang.ada:47842 Date: 2017-08-30T13:10:28-07:00 List-Id: Hi all, I came across this example in rosetta code: http://rosettacode.org/wiki/Call_a_function_in_a_shared_library#Ada After making some very simple libraries (static and shared), I have two questions: - 1 - How can the static libraries be included in a binary? What about inside of a project file? - 2 - How can I call a function/procedure in the said static library when the function/procedure is in a package? Do I just call only the public methods? If there is a sample piece of code, that'd be awesome.