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!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT Programming System Problems Date: 22 Jun 2004 21:58:09 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1087938183 12918 62.49.19.209 (22 Jun 2004 21:03:03 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 22 Jun 2004 21:03:03 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:1792 Date: 2004-06-22T21:58:09+01:00 List-Id: "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 ..) -- Simon Wright 100% Ada, no bugs.