comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@tiscali.be>
Subject: Re: "Library_Interface" GPR project attributes for Stand-alone Library
Date: Sat, 13 Aug 2005 20:03:42 +0200
Date: 2005-08-13T20:03:42+02:00	[thread overview]
Message-ID: <87zmrlu329.fsf@tiscali.be> (raw)
In-Reply-To: %GpLe.24237$hV3.9082@nntpserver.swip.net

David Sauvage <pariakaman@gmail.com> 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.



  reply	other threads:[~2005-08-13 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-13 17:03 "Library_Interface" GPR project attributes for Stand-alone Library David Sauvage
2005-08-13 18:03 ` Ludovic Brenta [this message]
2005-08-13 20:18   ` David Sauvage
replies disabled

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