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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d831f4147659ab6a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Using GNAT project files and libraries Date: Sun, 09 Mar 2008 19:03:51 +0000 Organization: Pushface Message-ID: References: <571db1b9-0d10-4044-8217-81311a35c7f2@e31g2000hse.googlegroups.com> <3dbf26ef-fb1d-43cb-9e33-b0a01740b40e@h25g2000hsf.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1205089435 3697 62.49.19.209 (9 Mar 2008 19:03:55 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 9 Mar 2008 19:03:55 +0000 (UTC) Cancel-Lock: sha1:b5fu2cbAhBXQjTZWJJ8LQH2X5Eg= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) Xref: g2news1.google.com comp.lang.ada:20263 Date: 2008-03-09T19:03:51+00:00 List-Id: Maciej Sobczak writes: > On 8 Mar, 23:17, Simon Wright wrote: > >> >> You need l.gpr. >> >> > Good point. I actually already have it, because the library was also >> > made with GNAT project files. >> >> Is your l.gpr like the simplified version I posted or the full one >> used to create the library? > > The full one - it was used to compile and archive the library itself. When I tried (GNAT-GPL), the static library build didn't seem to work so well (the .ali files weren't read-only, and the source include directory wasn't built). I've just tried again and it all works perfectly. I suspect I may have been using 2006 (I only built 2007 for the Powerbook recently). I think there's something to be said for the cut down use-only version (eg, if distributing a library in built form). But for one's own use, your way will certainly cut down the work!