comp.lang.ada
 help / color / mirror / Atom feed
* Problem compiling GTKAda examples (gtk.ads not found)
@ 2017-08-16 20:08 Josiah Smith
  2017-08-16 21:01 ` gautier_niouzes
  0 siblings, 1 reply; 2+ messages in thread
From: Josiah Smith @ 2017-08-16 20:08 UTC (permalink / raw)


I'm trying to run the helloworld program included in GTKAda's examples. (http://www.adacore.com/developers/code-samples/gtkada-examples/)(examples\tutorial\helloworld).  I'm on windows and have used the installers for gtkada, gnatgpl, and gprbuild.  It looks like gnat and gtkada are added to the path correctly.  Trying to run the code in the command line (gcc -c hello.adb) yields:

file "gdk.ads" not found
"Hello_Package (spec)" depends on "Gdk (spec)"
"Hello(body)" depends on "Hello_Package (spec)"
"Hello_Package (spec)" depends on "Gtk (spec)"
file "gtk.ads" not found
file "gtk.ads" not found
file "gtk.ads" not found
file "gtk.ads" not found

Do I need to create a project out of these files and include "with gtkada" in the project file to compile this, or am I doing something wrong from the command line?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem compiling GTKAda examples (gtk.ads not found)
  2017-08-16 20:08 Problem compiling GTKAda examples (gtk.ads not found) Josiah Smith
@ 2017-08-16 21:01 ` gautier_niouzes
  0 siblings, 0 replies; 2+ messages in thread
From: gautier_niouzes @ 2017-08-16 21:01 UTC (permalink / raw)


By "path", if you mean the PATH environment variable, it will be used only for searching executables or scripts, not Ada sources. You better have to use a project file (say, test.gpr) and do "gprbuild test". If you are allergic to project files, there are a few ways to do it (I would not recommend them...).
HTH
Gautier
_____________________________________________________________
A free online game in Ada: http://pasta.phyrama.com/game.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-16 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 20:08 Problem compiling GTKAda examples (gtk.ads not found) Josiah Smith
2017-08-16 21:01 ` gautier_niouzes

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