comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: GNAT Programming System Problems
Date: Wed, 23 Jun 2004 00:04:51 +0200
Date: 2004-06-23T00:04:52+02:00	[thread overview]
Message-ID: <87u0x32qrg.fsf@insalien.org> (raw)
In-Reply-To: x7vu0x3ia3i.fsf@smaug.pushface.org

Simon Wright writes:
> "Robert C. Leif" writes:
>
>> For each of my Ada Utilities, I created its own project.  Since in
>> each utility there are packages (mostly bodies) that depend on
>> packages in another utility, there are circular dependencies amongst
>> the .gpr files.  Fortunately, these do not exist in the
>> specifications.  After extensive searching, I found mention of a
>> "limited with construct".  The addition of limited before with in
>> the project file did not work.
>
> If you want not-yet-standard features such as limited with to work you
> must enable them with -gnatX (if I remember correctly) -- a compiler
> flag. Not sure if this will be available in anything other than the
> latest versions of the compiler, though (free or paid-for!), I think
> it was introduced November of last year or thereabouts.
>
> I agree that GNAT Project is not easy to get to grips with, especially
> if (as I did) you start out with misconceptions.
>
> A key thing is "every Project must have its own 'Object_Dir" -- it may
> seem as though it is working without this but if so it will only be
> because of bugs in GNAT Project handling in the tools.
>
> Another key thing is "without project extension, each source file may
> appear only once in all the with'ed projects".
>
> The distribution of my ColdFrame (http://pushface.org/coldframe/)
> comes with a set of GPRs, if that would help. They successfully build
> my regression tests with GNAT 3.15p (but for some reason I haven't
> followed through the tests fail with that release. Hmm! I normally
> test on 3.16a1 ..)

Also, the "limited with" feature of Ada 2005 deals with Ada packages,
not with GNAT project files.

-- 
Ludovic Brenta.




  reply	other threads:[~2004-06-22 22:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-22  4:54 GNAT Programming System Problems Robert C. Leif
2004-06-22  6:06 ` Martin Krischik
2004-06-22 14:06   ` Robert Love
2004-06-22 14:39     ` Ludovic Brenta
2004-06-23 13:39       ` Robert Love
2004-06-22 15:10     ` Arnaud Charlet
2004-06-22 20:58 ` Simon Wright
2004-06-22 22:04   ` Ludovic Brenta [this message]
2004-06-23  4:51     ` Simon Wright
replies disabled

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