comp.lang.ada
 help / color / mirror / Atom feed
From: Alain De Vos <devosalain71@gmail.com>
Subject: Re: How to write gpr files from scratch , example 1, build only one package
Date: Sat, 2 Nov 2019 03:13:29 -0700 (PDT)
Date: 2019-11-02T03:13:29-07:00	[thread overview]
Message-ID: <5074b0e7-91f9-46fa-a8ae-8d0815ae5dc1@googlegroups.com> (raw)
In-Reply-To: <451888fd-9b13-4a8c-b7cf-111f877efcde@googlegroups.com>

On Friday, November 1, 2019 at 11:04:07 PM UTC+1, Alain De Vos wrote:
> https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/gnat_project_manager.html
> 
> I have a file buttonhandler.adb containing :
> -- TEST : Connecting via the On_* procedures first method
> with GTk...stuff...;
> package body buttonhandler is
>    procedure On_Button_Click (Button : access Gtk_Button_Record'Class) is
>    begin
>       Put_line ("Hallo");
>    end On_Button_Click;
> end buttonhandler;
> --------------------------------------------
> > Now I write  : my_buttonhandler.gpr contents (as there is no main entry),                                              
> with "gtkada.gpr";
> project My_buttonhandler is
> end My_buttonhandler;
> ------------------------------------------
> Executing :
> gprbuild -Pmy_buttonhandler.gpr returns :
> Compile
>    [Ada]          buttonhandler.adb
> buttonhandler.adb:19:14: file "buttonhandler.ads" not found

Yes gtk.handlers are the way to go, but one step at a time, I come that later. 
I order not not clutter I post a new specific question regarding the on_procedure method.


      parent reply	other threads:[~2019-11-02 10:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 22:04 How to write gpr files from scratch , example 1, build only one package Alain De Vos
2019-11-01 22:10 ` Alain De Vos
2019-11-02  8:42   ` Dmitry A. Kazakov
2019-11-01 22:26 ` Simon Wright
2019-11-01 22:33   ` Alain De Vos
2019-11-01 22:34     ` Alain De Vos
2019-11-01 23:05       ` Alain De Vos
2019-11-01 22:50     ` Dennis Lee Bieber
2019-11-02 10:13 ` Alain De Vos [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