From: Stephen Leake <stephen_leake@acm.org>
To: Pascal Obry <pascal@obry.net>
Cc: comp.lang.ada@ada-france.org
Subject: Re: GNAT Project Files?
Date: Sat, 25 Jun 2005 20:08:12 -0400
Date: 2005-06-25T20:08:12-04:00 [thread overview]
Message-ID: <mailman.96.1119744512.17633.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <u1x6qyx7q.fsf@obry.net> (Pascal Obry's message of "25 Jun 2005 22:53:45 +0200")
Pascal Obry <pascal@obry.net> writes:
> Jacob Sparre Andersen <sparre@nbi.dk> writes:
>
>> More precisely:
>>
>> package Linker is
>> for Switches ("test_word_buffer.adb") use ("-laws", "-lcharles");
>> end Linker;
>>
>> Thanks.
>
> This is not right. If the above works it means that the AWS project file is
> wrong.
I don't think so. Clearly aws.gpr does not know about
test_word_buffer.adb.
I don't think there is a project file syntax for "use this library
for all executables". Perhaps there should be.
One solution is to use 'pragma Linker ("-laws")' in the Ada source for aws.
Hmm. Maybe you could do (in aws.gpr):
package Linker is
for Default_Switches ("Ada") use ("-laws");
end Linker;
Then in a user project file you can do:
package Linker
for Switches ("test_word_buffer.adb") use
Aws.Linker.Default_Switches;
end Linker;
Better, but still not automatic.
'gprmake' (in GNAT 5.03a) can build both C and Ada code, and link them
together. But that's not quite what you want here, I think.
> How aws.gpr was built ? Which AWS version are you using ? The whole
> point of the Project File is to deal with those issues for you.
Maybe I've missed something; how do you expect the project file to
work here?
--
-- Stephe
next prev parent reply other threads:[~2005-06-26 0:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-25 16:11 GNAT Project Files? Jacob Sparre Andersen
2005-06-25 18:14 ` Stephen Leake
2005-06-25 18:53 ` Jacob Sparre Andersen
2005-06-25 20:53 ` Pascal Obry
2005-06-26 0:08 ` Stephen Leake [this message]
2005-06-26 7:55 ` Pascal Obry
2005-06-26 13:00 ` Stephen Leake
2005-06-26 0:22 ` Jacob Sparre Andersen
2005-06-26 7:59 ` Pascal Obry
2005-06-26 13:24 ` Ludovic Brenta
2005-06-26 19:40 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox