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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.39.102 with SMTP id o6mr4512407pdk.4.1422227732857; Sun, 25 Jan 2015 15:15:32 -0800 (PST) X-Received: by 10.140.106.8 with SMTP id d8mr125642qgf.7.1422227732598; Sun, 25 Jan 2015 15:15:32 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!hl2no2099218igb.0!news-out.google.com!q4ni4qan.0!nntp.google.com!v8no3515277qal.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 25 Jan 2015 15:15:32 -0800 (PST) In-Reply-To: <63e1488a-6a1b-46e7-8984-240faef1fc67@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.143.26.54; posting-account=oKCOPgoAAABtUE61MUucYQQa5xjvNNSz NNTP-Posting-Host: 188.143.26.54 References: <63e1488a-6a1b-46e7-8984-240faef1fc67@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT linker error From: hosszu.gabor90@gmail.com Injection-Date: Sun, 25 Jan 2015 23:15:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:24742 Date: 2015-01-25T15:15:32-08:00 List-Id: Thank you, adding -lpixman-1 made it work. But please explain me how it can happen that: - with GPS 5 it worked without lib pixman linker flag - "manually" it also worked - both of these mean execution of the following command: (I have compared them) gnatmake -d -P/home/myuser/own_projects/ada/AdaTest.gpr -vP2 -j4 -g So everything depends only on the project files (AdaTest.gpr and gtkada.gpr) which do not contain anything related to pixman. And the program is this simple GtkAda example: with Gtk.Box; use Gtk.Box; with Gtk.Button; use Gtk.Button; with Gtk.Label; use Gtk.Label; with Gtk.Widget; use Gtk.Widget; with Gtk.Main; with Gtk.Window; use Gtk.Window; with Gtkada.Handlers; use Gtkada.Handlers; with Ada.Text_IO; with Glib; use Glib; procedure Main is Win : Gtk_Window; Label : Gtk_Label; Box : Gtk_Vbox; begin Gtk.Main.Set_Locale; Gtk.Main.Init; Gtk_New (Win); Win.Set_Default_Size (500, 500); Gtk_New_Vbox (Box); Gtk_New (Label, "Hello world."); Win.Add (Label); Win.Show_All; Gtk.Main.Main; end Main;