From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to write and compile a helloworld.adb gtkada3 application ?
Date: Fri, 1 Nov 2019 12:34:50 +0100
Date: 2019-11-01T12:34:50+01:00 [thread overview]
Message-ID: <qph58p$1i6v$1@gioia.aioe.org> (raw)
In-Reply-To: 583edd9e-5809-43e1-bc9b-6118da53ae21@googlegroups.com
On 2019-11-01 11:57, Alain De Vos wrote:
> Thanks for the answer. The speficic question I have is :
> A hello_world_in_ada_gtk3.adb file and
> gcc someoptions
> gnatbuild someoptions
> gnatlink someoptions
It is not the recommended way. Yes, there exists the gtkada-config
program which generates switches for the compiler and linker. GtkAda
comes with it. Use gtkada-config this way:
gcc -c hello_gtk.adb `gtkada-config --cflags`
and gtkada-config --libs is for the linker.
Yet a better way is to use a project file:
with "gtkada.gpr"
project Hello_GTK is
for Main use ("hello_gtk.adb");
end Hello_GTK;
Then simply run gprbuild -Phello_gtk.gpr. Or open the project in GPS.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
eve
next prev parent reply other threads:[~2019-11-01 11:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-01 1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
2019-11-01 9:42 ` joakimds
2019-11-01 10:57 ` Alain De Vos
2019-11-01 11:34 ` Dmitry A. Kazakov [this message]
2019-11-01 14:08 ` Alain De Vos
2019-11-01 18:36 ` Shark8
2020-01-07 7:13 ` Admin Avatarae
2020-01-08 13:46 ` mario.blunk.gplus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox