0
votes

I am trying to use GtkAda with GNAT Programming Studio. When I load the standard template for a simple GUI program, I get the following errors:

"gtk.ads" not found

I tried to add the following (as the mentioned file itself recommends in its comments):

with "gtkada";

or this one...

with "/usr/share/ada/adainclude/gtkada.gpr";

but I get the error message:

main.adb:1:06: identifier expected

How can I make it compile and how can I use GPS with GtkAda?

1

1 Answers

1
votes

gtkada.gpris a project file (*.gpr), and your program files (*.ads, *.adb) can only import other program files, not project files. Those with statements should go in your project file.