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: a07f3367d7,57d6726df7b9ad13 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p23g2000vbl.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: text tools Date: Tue, 20 Oct 2009 10:49:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6cfcc5de-34bc-4fdb-96ad-5e68eb2d69d9@p23g2000vbl.googlegroups.com> References: <918b3ebe-ec1b-4334-ac6c-8a1fb5b9f2ee@k4g2000yqb.googlegroups.com> <44acf5f8-f3b3-49b8-bfac-3e35fad8f2b1@q14g2000vbi.googlegroups.com> NNTP-Posting-Host: 94.108.146.131 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1256060999 15656 127.0.0.1 (20 Oct 2009 17:49:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 20 Oct 2009 17:49:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p23g2000vbl.googlegroups.com; posting-host=94.108.146.131; 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.14) Gecko/2009091008 Iceweasel/3.0.14 (Debian-3.0.14-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8749 Date: 2009-10-20T10:49:59-07:00 List-Id: On Oct 20, 11:28=A0am, Ludovic Brenta wrote: > Rob Solomon wrote on comp.lang.ada: > > > The following basic.gpr is not working either: > > with "texttools"; > > project basic is > > =A0 =A0for Source_Dirs use ("."); > > =A0 =A0for Object_dir use "obj"; > > =A0 =A0for Exec_Dir use "."; > > =A0 =A0for Main use ("basic"); > > =A0 =A0package Linker is > > =A0 =A0 =A0 for Default_Switches ("Ada") use ("/usr/lib/libtexttools.a"= ); > > =A0 =A0end linker; > > end basic; > > > I tried this without first and then with the package Linker clause. > > Neither works. =A0I get very similar errors to the first time I posted, > > w/ lots of undefined and unlinkable symbols. > > OK, I'll try to reproduce that and get back to you. On my Debian (testing) system, I do not get the same errors as you do; this seems to be a bug introduced by Ubuntu 9.04, so the only way I can help you here is by saying "upgrade to Debian" :/ However, even on Debian there is a minor bug; /usr/lib/libtexttools.so is not linked against libgnarl.so as it should. A simple workaround is to write the project file thus: with "texttools"; project basic is for Source_Dirs use ("."); for Object_dir use "obj"; for Exec_Dir use "."; for Main use ("basic"); package Linker is for Default_Switches ("Ada") use ("-lgnarl"); end linker; end basic; which, on my system, results in a working executable. For reference, here are tha packages that I used: ii gnat 4.3.3-9 The GNU Ada compiler ii gnat-4.3 4.3.4-4 The GNU Ada compiler ii gnat-4.3-base 4.3.4-4 The GNU Compiler Collection (gnat base package) ii libgnat-4.3 4.3.4-4 Runtime library for GNU Ada applications ii libgnat-4.3-dbg 4.3.4-4 Runtime library for GNU Ada applications ii libgnatprj-dev 4.3.3-9 GNU Ada Project Manager development files ii libgnatprj4.3 4.3.4-4 GNU Ada Project Manager ii libgnatprj4.3-dbg 4.3.4-4 GNU Ada Project Manager ii libgnatprj4.3-dev 4.3.4-4 GNU Ada Project Manager development files ii libgnatvsn-dev 4.3.3-9 GNU Ada compiler version library - development files ii libgnatvsn4.3 4.3.4-4 GNU Ada compiler version library ii libgnatvsn4.3-dbg 4.3.4-4 GNU Ada compiler version library ii libgnatvsn4.3-dev 4.3.4-4 GNU Ada compiler version library - development files ii libtexttools-dev 2.0.5-1 Ada and C++ library for writing console applications ii libtexttools2.0.5 2.0.5-1 Ada and C++ library for writing console applications -- Ludovic Brenta.