I use Linux mint. Installed gnat to work with Ada programs, using "sudo apt-get install gnat".
created a simple hello world program:
with Ada.Text_IO;
procedure Hello is
begin
Ada.Text_IO.Put_Line("Hello, world!");
end Hello;
and saved it as "hello.adb"
Tried running it from the location it was saved, opened terminal and typed & got following:
$ cd /media/disk1/ada\ programs
$ gnatmake hello.adb
gcc-4.4 -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali
$ hello
The program 'hello' can be found in the following packages:
* hello
* hello-debhelper
Try: sudo apt-get install
$ ./hello
bash: ./hello: Permission denied
What shall i do to see the output of the program?
where does it go wrong?
Few websites said, to just type "hello" after "gnatmake hello.adb" but it didn't work,
and few said, to try "./hello" after "gnatmake hello.adb" but that too didn't work?
what next? help out pls..