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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Undefined reference errors and strange new files appearing Date: Sun, 22 Jun 2014 07:56:31 +0200 Organization: cbb software GmbH Message-ID: <1mzn30tk739yc.1xe0abn3udzik.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: qHNcUCBwwd01dPSBp/L1cg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:20501 Date: 2014-06-22T07:56:31+02:00 List-Id: On Sat, 21 Jun 2014 19:21:52 -0300, hreba wrote: > Still struggling to get a foot into Ada. > > I wrote a simple abstract linear list library, "gen-lists", and a test > programs test_genlists which uses it. The files are: > > gen-lists.ads abstract linear list > gen-lists.adb > test_lists_aux.ads concrete extension of the list > test_lists_aux.adb > test_lists.adb main subprogram > > The project file gen.gpr for the library is [...] > I guess I forgot something in the project files. Nevertheless I > reproduce the start of my sources: Did you build your library? Usually, when using a library as an OS library, you need two projects, one in order to build the library and another to use it. Then each projects would likely have several scenarios depending on whether the library is relocatable or static (and debugging or release). P.S. b~files are generated by GNAT when building an executable. Ignore them. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de