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.182.142.99 with SMTP id rv3mr43431940obb.2.1439643832320; Sat, 15 Aug 2015 06:03:52 -0700 (PDT) X-Received: by 10.50.44.97 with SMTP id d1mr129530igm.14.1439643832297; Sat, 15 Aug 2015 06:03:52 -0700 (PDT) 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!se8no4257060igc.0!news-out.google.com!nt1ni8306igb.0!nntp.google.com!x6no649918igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 15 Aug 2015 06:03:51 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=125.212.120.26; posting-account=tlga6goAAADa61F5A8iDJnNHEZo_pywd NNTP-Posting-Host: 125.212.120.26 References: <84ecbeb2-095a-4067-a05e-e86ac86d8597@googlegroups.com> <8235925f-3299-48fb-abfe-67b77515e5de@googlegroups.com> <79oew82p4v6b$.hkifjb8uma0z$.dlg@40tude.net> <4a4b82b9-f0a2-48af-9da6-255dfaeeaf6f@googlegroups.com> <13h77fkwqywwh$.1h9cf6ytit6ew$.dlg@40tude.net> <095b91f7-2485-4093-b378-6a3a79a0f864@googlegroups.com> <1mbqd8bcxlrok$.1hg7u98k9zcqw$.dlg@40tude.net> <7ddceec3-77cb-4e54-a6b9-389897925eac@googlegroups.com> <5sxfn4rfyhsw.efs1svewiq3s.dlg@40tude.net> <13sgnrrbptq6a.14noit4g54jvc$.dlg@40tude.net> <1cemeahnwd19t.j2xc6498vn2f.dlg@40tude.net> <1fb6b63b-d9b6-415f-932c-c0b9582b4a4c@googlegroups.com> <1439639491.2624.15.camel@obry.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <33812a8c-104c-4e27-8b97-185b08a8e3ea@googlegroups.com> Subject: Re: GUI for Ada (GPS with GtkAda or GtkGlade GUI Builder) From: ryne rico Injection-Date: Sat, 15 Aug 2015 13:03:52 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27466 Date: 2015-08-15T06:03:51-07:00 List-Id: 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: >=20 > > On Saturday, August 15, 2015 at 7:51:33 PM UTC+8, Pascal Obry wrote: > >> Le samedi 15 ao=FBt 2015 =E0 04:47 -0700, ryne rico a =E9crit : > >>> Windows 7. Gtkada version - 3.8.4=20 > >>> project file - main.adb > >>=20 > >> So you are not using a project file. Won't work. > >>=20 > >> See documentation about how to create a project file and then just add= : > >>=20 > >> with "gtkada"; > >>=20 > >> At the start. > >>=20 > >> --=20 > >> Pascal Obry / Magny Les Hameaux (78) > >> > >=20 > > 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; > >=20 > > error:=20 > > C:\Users\MyName\Desktop\Ada workspace\GUI2015\src\main.adb > > 1:6 identifier expected >=20 > No, not into main.adb, into the project file named *.gpr. The one you wou= ld > open using GPS. Do you use a project file? >=20 > It could look like My_Project.gpr: >=20 > with "gtkada.gpr"; > project My_Project is > for Main use ("Main.adb"); > end My_Project; >=20 > To build it from the command prompt do: >=20 > > gprbuild -PMy_Project.gpr >=20 > (Better use GPS) >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de here is the 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 i have an error in main.adb 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