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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Switching to GPS 2019 with GtkADA 2019 Date: Sun, 16 Jun 2019 17:05:14 +0100 Organization: A noiseless patient Spider Message-ID: References: <5d0649e7$0$1797$e4fe514c@news.kpn.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="6f9fdce0f44413cda0859b44ce3b47b7"; logging-data="5351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180oEDRbIQ7q9U9/yLDgUQwTVrwGm6n8Bw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:CRxaYzL/rYxtkKADjMu4rofmHKk= sha1:zClfFLnDgJwRm+5WzF/0iu+vjKY= Xref: reader01.eternal-september.org comp.lang.ada:56647 Date: 2019-06-16T17:05:14+01:00 List-Id: "ldries46" 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