I am using Mint Linux. Installed gnat for working with Ada programs using "sudo apt-get install gnat".
created a simple welcome program:
with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello, world!"); end Hello;
and saved it as "hello.adb"
I tried to start it from the place where it was saved, opened the terminal and dialed and received the following:
$ cd / media / disk1 / ada \ programs
$ gnatmake hello.adb
gcc-4.4 -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali
$ hello
The 'hello' program can be found in the following packages:
* hello
* hello-debhelper
Try: sudo apt-get install
$. / hello
bash: ./ hello: Permission denied
What should I do to see the program exit?
where is it not?
Several sites said to just type βhiβ after βgnatmake hello.adb,β but that didn't work,
and few said try "./hello" after "gnatmake hello.adb", but that didn't work either?
what's next? help pls ..
source share