comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: text tools
Date: Tue, 20 Oct 2009 10:49:59 -0700 (PDT)
Date: 2009-10-20T10:49:59-07:00	[thread overview]
Message-ID: <6cfcc5de-34bc-4fdb-96ad-5e68eb2d69d9@p23g2000vbl.googlegroups.com> (raw)
In-Reply-To: 44acf5f8-f3b3-49b8-bfac-3e35fad8f2b1@q14g2000vbi.googlegroups.com

On Oct 20, 11:28 am, Ludovic Brenta <ludo...@ludovic-brenta.org>
wrote:
> Rob Solomon wrote on comp.lang.ada:
>
> > The following basic.gpr is not working either:
> > 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 ("/usr/lib/libtexttools.a");
> >    end linker;
> > end basic;
>
> > I tried this without first and then with the package Linker clause.
> > Neither works.  I 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.




  reply	other threads:[~2009-10-20 17:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18 23:55 text tools Rob Solomon
2009-10-19  8:09 ` Stephen Leake
2009-10-19  8:12 ` Ludovic Brenta
2009-10-19 21:27   ` Rob Solomon
2009-10-19 22:06     ` Ludovic Brenta
2009-10-20  0:13       ` Rob Solomon
2009-10-20  2:25   ` Rob Solomon
2009-10-20  9:28     ` Ludovic Brenta
2009-10-20 17:49       ` Ludovic Brenta [this message]
2009-10-20 23:14         ` Rob Solomon
2009-10-21  0:39           ` Rob Solomon
2009-10-21  8:06             ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox