From: Rob Solomon <usenet@drrob1-noreply.com>
Subject: Re: text tools
Date: Tue, 20 Oct 2009 19:14:46 -0400
Date: 2009-10-20T19:14:46-04:00 [thread overview]
Message-ID: <7ugsd511f0fpp8q22i7rupa6htoooccfu3@4ax.com> (raw)
In-Reply-To: 6cfcc5de-34bc-4fdb-96ad-5e68eb2d69d9@p23g2000vbl.googlegroups.com
On Tue, 20 Oct 2009 10:49:59 -0700 (PDT), Ludovic Brenta
<ludovic@ludovic-brenta.org> wrote:
>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:
Finally got it to work. I also found that the order of these options
in the Linker clause is important. This worked:
package Linker is
for Default_Switches("Ada") use ("-lm","-lcurses","-lgnarl");
end linker;
I almost cannot believe it worked.
Now I have to try some of the other examples.
next prev parent reply other threads:[~2009-10-20 23:14 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
2009-10-20 23:14 ` Rob Solomon [this message]
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