with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure MyApp is procedure SayHi(name: in String) is begin put_line("hi!" & name); end SayHi; begin SayHi("tom"); SayHi("bob"); end MyApp;
[vagrant@localhost ada_lessons]$ gnatmake myapp.adb gcc -c myapp.adb gnatbind -x myapp.ali gnatlink myapp.ali [vagrant@localhost ada_lessons]$ ./myapp hi!tom hi!bob