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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afdc9d59a2cfd4e8 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!195.241.76.212.MISMATCH!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: GNAT Programming System Problems References: From: Ludovic Brenta Date: Wed, 23 Jun 2004 00:04:51 +0200 Message-ID: <87u0x32qrg.fsf@insalien.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:ERpmDA8Uqi+vMnvPRt4py21XxZY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 23 Jun 2004 00:04:52 CEST NNTP-Posting-Host: 83.134.242.150 X-Trace: 1087941892 dreader2.news.tiscali.nl 62377 83.134.242.150:37799 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:1794 Date: 2004-06-23T00:04:52+02:00 List-Id: 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.