comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Problems with SPARK 2015 and XMLAda
Date: Wed, 19 Aug 2015 21:21:40 +0100
Date: 2015-08-19T21:21:40+01:00	[thread overview]
Message-ID: <lymvxn112j.fsf@pushface.org> (raw)
In-Reply-To: e3de50ce-e994-4038-8160-13266aeb207e@googlegroups.com

Serge Robyns <serge.robyns@gmail.com> writes:

>     11.    Library_Type : Xmlada_Kind_Type := external ("LIBRARY_TYPE");
>            1                                  2
>         >>> no value defined for "library_type"
>         >>> warning: undefined external reference

I would expect the required value to be "static" or "dynamic" (perhaps
"relocatable").

'external ("FOO")' means 'look for a scenario variable[1] "FOO" and take
its value; fail if not found'.

You can define a scenario variable either as an environment variable
(export LIBRARY_TYPE=static, for bash) or on the command line,

   $ gprbuild -P prj -XLIBRARY_TYPE=static

but you might find it easier to define a default value,

   Library_Type : Xmlada_Kind_Type := external ("LIBRARY_TYPE", "static");

>     14.    Xmlada_Build : Build_Kind := external ("XMLADA_BUILD");
>            1                            2
>         >>> no value defined for "xmlada_build"
>         >>> warning: undefined external reference

xmlada.gpr & friends say e.g.

   library project XmlAda_Dom is
      type BUILD_KIND is ("static", "relocatable");
      BUILD : BUILD_KIND := external("XMLADA_BUILD", "static");


[1] http://docs.adacore.com/gprbuild-docs/html/share/gnat_project_manager.html#scenarios-in-projects


  reply	other threads:[~2015-08-19 20:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 15:58 Problems with SPARK 2015 and XMLAda Serge Robyns
2015-08-19 20:21 ` Simon Wright [this message]
2015-08-19 21:22   ` Serge Robyns
2015-08-20  7:10     ` Jacob Sparre Andersen
2015-08-20 10:06       ` Mark Lorenzen
2015-08-20 16:38     ` Shark8
2015-08-20 18:42       ` Peter Chapin
2015-08-20 19:13         ` Jeffrey R. Carter
2015-08-20 20:00       ` Serge Robyns
2015-08-20 20:36       ` Randy Brukardt
2015-08-20 23:21         ` Shark8
2015-08-21  6:26         ` Stefan.Lucks
2015-08-21  7:30           ` Dmitry A. Kazakov
2015-08-21  8:19             ` Stefan.Lucks
2015-08-21  9:37               ` Dmitry A. Kazakov
2015-08-21 10:09                 ` G.B.
2015-08-21 11:56                   ` Dmitry A. Kazakov
2015-08-21 13:46                     ` G.B.
2015-08-21 14:45                       ` brbarkstrom
2015-08-21 15:34                       ` Dmitry A. Kazakov
2015-08-21 23:44                       ` Bob Duff
2015-08-22  6:22                         ` Dmitry A. Kazakov
2015-08-21 10:43                 ` Stefan.Lucks
2015-08-21 12:35                   ` Dmitry A. Kazakov
2015-08-24 21:32               ` Randy Brukardt
replies disabled

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