* Switching to GPS 2019 with GtkADA 2019
@ 2019-06-16 13:53 ldries46
2019-06-16 16:05 ` Simon Wright
0 siblings, 1 reply; 2+ messages in thread
From: ldries46 @ 2019-06-16 13:53 UTC (permalink / raw)
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");
-- Library_Type : Build_Kind := external ("LIBRARY_TYPE");
-- Library_Type : Build_Kind := "static";
case Library_Type is
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Switching to GPS 2019 with GtkADA 2019
2019-06-16 13:53 Switching to GPS 2019 with GtkADA 2019 ldries46
@ 2019-06-16 16:05 ` Simon Wright
0 siblings, 0 replies; 2+ messages in thread
From: Simon Wright @ 2019-06-16 16:05 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-16 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-16 13:53 Switching to GPS 2019 with GtkADA 2019 ldries46
2019-06-16 16:05 ` Simon Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox