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,87f35db9d59e47d8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Sat, 13 Aug 2005 13:02:35 -0500 Newsgroups: comp.lang.ada Subject: Re: "Library_Interface" GPR project attributes for Stand-alone Library References: <%GpLe.24237$hV3.9082@nntpserver.swip.net> From: Ludovic Brenta Date: Sat, 13 Aug 2005 20:03:42 +0200 Message-ID: <87zmrlu329.fsf@tiscali.be> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:vXn0ND+N9hdRS2SlI3IoG2baYWI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.242.41 X-Trace: sv3-C9kIrPK04kJ3/L/baJj92Uo/L2iWvYrYb2oz9v+W//TIJlYznnI1urFrFW1SRyRJFUKM2l11dxDhDru!ZVkQ/MSS1mGRleASafdpGiWwMDAa+jcqCLqV3J9TVKnG5VYgo2XWsaZMqX9w9uE= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:4106 Date: 2005-08-13T20:03:42+02:00 List-Id: David Sauvage writes: > Hi, > i read on the GNAT RM [1], that the GPR project attributes > "Library_Interface" was used for Stand-alone Library project. > I'm trying to use it and get : > > ibservices.gpr:9:08: undefined attribute "library_interface" > > ibservices.gpr:9 => for Library_Interface use ("Libservices", > "Libservices.Child"); > > any tips about that ?, Thanks > > [1] http://gcc.gnu.org/onlinedocs/gnat_rm/Project-Attributes.html > > config : > Debian GNU/Linux Sarge > GPS 2.1.0 (20041129) hosted on i386-pc-linux-gnu > GNAT 3.15p (20020523) Library_Interface is new in GCC 3.4, so you don't have it in GNAT 3.15p. It does nothing more than generate a master procedure that "withs" the named packages, and cause the binder to generate the elaboration procedures. You can achieve the same effect by generating the master file yourself, like I describe in the Debian Policy for Ada. I don't think that Library_Interface is very useful anyway; I think it is better to generate the list of packages rather than maintain it by hand in a project file. PS. Beware that the link above points to the GCC 4.1.0 version of the GNAT reference manual, and GCC 4.1.0 has not yet been released. -- Ludovic Brenta.