comp.lang.ada
 help / color / mirror / Atom feed
From: ryne rico <rrtwikz@gmail.com>
Subject: Re: GUI for Ada (GPS with GtkAda or GtkGlade GUI Builder)
Date: Sat, 15 Aug 2015 06:07:16 -0700 (PDT)
Date: 2015-08-15T06:07:16-07:00	[thread overview]
Message-ID: <c60a185e-afbf-46a7-88b3-25fb792845d7@googlegroups.com> (raw)
In-Reply-To: <mq7ees1xaops.l2aohzw3lv5z.dlg@40tude.net>

On Saturday, August 15, 2015 at 8:55:06 PM UTC+8, Dmitry A. Kazakov wrote:
> On Sat, 15 Aug 2015 05:21:03 -0700 (PDT), ryne rico wrote:
> 
> > On Saturday, August 15, 2015 at 7:51:33 PM UTC+8, Pascal Obry wrote:
> >> Le samedi 15 août 2015 à 04:47 -0700, ryne rico a écrit :
> >>> Windows 7. Gtkada version - 3.8.4 
> >>> project file - main.adb
> >> 
> >> So you are not using a project file. Won't work.
> >> 
> >> See documentation about how to create a project file and then just add:
> >> 
> >> with "gtkada";
> >> 
> >> At the start.
> >> 
> >> -- 
> >>   Pascal Obry /  Magny Les Hameaux (78)
> >>
> > 
> > with "gtkada";
> > with Gtk.Box;         use Gtk.Box;
> > with Gtk.Label;       use Gtk.Label;
> > with Gtk.Widget;      use Gtk.Widget;
> > with Gtk.Main;
> > with Gtk.Window;      use Gtk.Window;
> > 
> > error: 
> > C:\Users\MyName\Desktop\Ada workspace\GUI2015\src\main.adb
> >         1:6 identifier expected
> 
> No, not into main.adb, into the project file named *.gpr. The one you would
> open using GPS. Do you use a project file?
> 
> It could look like My_Project.gpr:
> 
> with "gtkada.gpr";
> project My_Project is
>    for Main use ("Main.adb");
> end My_Project;
> 
> To build it from the command prompt do:
> 
>    > gprbuild -PMy_Project.gpr
> 
> (Better use GPS)
> 
> -- 
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de


Here is my Default.gpr

with "gtkada.gpr";

project Default is

   for Source_Dirs use ("src");
   for Object_Dir use "obj";
   for Main use ("main.adb");

   --  Enable Ada 2005.
   package Compiler is
      for Default_Switches ("ada") use ("-gnat05");
   end Compiler;

end Default;


but still in my main.adb there's an error:

with Gtk.Box;         use Gtk.Box;
with Gtk.Label;       use Gtk.Label;
with Gtk.Widget;      use Gtk.Widget;
with Gtk.Main;
with Gtk.Window;      use Gtk.Window;


Builder results
    C:\Users\MyName\Desktop\Ada workspace\Gui2\src\main.adb
        1:6 file "gtk.ads" not found
        2:6 file "gtk.ads" not found
        3:6 file "gtk.ads" not found
        4:6 file "gtk.ads" not found
        5:6 file "gtk.ads" not found

  parent reply	other threads:[~2015-08-15 13:07 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 10:24 GUI for Ada (GPS with GtkAda or GtkGlade GUI Builder) Trish Cayetano
2015-08-10 12:17 ` Dmitry A. Kazakov
2015-08-11 11:15   ` Stephen Leake
2015-08-11 11:52     ` Dmitry A. Kazakov
2015-08-10 14:36 ` Maciej Sobczak
2015-08-12 21:00   ` erlo
2015-08-12 21:48     ` Jeffrey R. Carter
2015-08-13 19:45       ` erlo
2015-08-13  8:58   ` sjaniska
2015-08-13 11:59     ` Dmitry A. Kazakov
2015-08-13 12:09       ` sjaniska
2015-08-13 12:50         ` Dmitry A. Kazakov
2015-08-13 12:56           ` sjaniska
2015-08-13 13:42             ` Dmitry A. Kazakov
2015-08-14 12:59               ` brbarkstrom
2015-08-14 13:26                 ` Dmitry A. Kazakov
2015-08-15  9:17                   ` Trish Cayetano
2015-08-15  9:32                     ` Dmitry A. Kazakov
2015-08-15 10:21                       ` ryne rico
2015-08-15 10:29                         ` Trish Cayetano
2015-08-15 10:58                         ` Dmitry A. Kazakov
2015-08-15 11:47                           ` ryne rico
2015-08-15 11:51                             ` Pascal Obry
2015-08-15 12:21                               ` ryne rico
2015-08-15 12:41                                 ` Pascal Obry
2015-08-15 12:54                                 ` Dmitry A. Kazakov
2015-08-15 13:03                                   ` ryne rico
2015-08-15 13:07                                   ` ryne rico [this message]
2015-08-15 13:34                                     ` Dmitry A. Kazakov
2015-08-15 17:41                                       ` Anh Vo
2015-08-15 19:27                                         ` Dmitry A. Kazakov
2015-08-16 15:37                                           ` ryne rico
2015-08-16 16:08                                             ` Dmitry A. Kazakov
2015-08-17  8:23                                             ` AdaMagica
2015-08-18  0:14 ` isaac1.0
2015-08-18  7:12   ` Dmitry A. Kazakov
2015-08-18  8:45   ` Jerry
2015-08-19 14:36   ` David Botton
2015-08-27 10:43     ` gautier_niouzes
2015-08-18 17:02 ` Norman Worth
2015-08-18 22:05   ` Simon Wright
replies disabled

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