comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Switching to GPS 2019 with GtkADA 2019
Date: Sun, 16 Jun 2019 17:05:14 +0100
Date: 2019-06-16T17:05:14+01:00	[thread overview]
Message-ID: <lyfto98qit.fsf@pushface.org> (raw)
In-Reply-To: 5d0649e7$0$1797$e4fe514c@news.kpn.nl

"ldries46" <bertus.dries@planet.nl> writes:

> In the last version of the GNAT Programming Studio (2017 or 2018)I
> used in the gpr file line
> Library_Type : Build_Kind := external ("LIBRARY_TYPE");
> The program was compiled without problems
> In version 2019 the file cannot be compiled anymore now I must use
> Library_Type : Build_Kind := "static";
> to reach the same effect
> The Library that is responsible is the GtkADA library What name must I
> use for this library
>
> with "gtkada";
>
> project Template is
>
>   for Object_Dir use "./build";
>   for Exec_Dir use ".";
>   type Build_Kind is
>      ("static", "relocatable");

You need

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

which means that if you don't have LIBRARY_TYPE defined (either in the
environment, or via the gprbuild flag -XLIBRARY_TYPE=relocatable) it'll
default to "static".

I don't know how using your first version (without the default) and
without having LIBRARY_TYPE defined could ever have worked, this has
been as it is now for a long time.

> --    Library_Type : Build_Kind := external ("LIBRARY_TYPE");
> --    Library_Type : Build_Kind := "static";
>
>   case Library_Type is 


      reply	other threads:[~2019-06-16 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-16 13:53 Switching to GPS 2019 with GtkADA 2019 ldries46
2019-06-16 16:05 ` Simon Wright [this message]
replies disabled

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