Who is Ada Lovelace

with Ada.Text_IO;
procedure mohrada is
-- An ADA program
begin
  Ada.Text_IO.Put_Line( "This file should be named    mohrada.adb     to test it. This matches the procedure name." );
  Ada.Text_IO.Put_Line( "Ada was named after Ada Lovelace  born 1815 died 1852 at the age of 37." );
  Ada.Text_IO.Put_Line( "She is often credited as being the first computer programmer." );
  Ada.Text_IO.Put_Line( "gcc will fail unless gnat-x.x ( where x is versions ) is installed. It is 4.2 on my system." );
  Ada.Text_IO.Put_Line( "  sudo apt-get install gnat-4.2" );
  Ada.Text_IO.Put_Line( "Source ada files must be named with extension  -- .adb --" );
  Ada.Text_IO.Put_Line( "Source ada files must be named the same as the procedure in LOWER CASE!" );
  Ada.Text_IO.Put_Line( "STEP 1:     gcc -c mohrada.adb" );
  Ada.Text_IO.Put_Line( "NOTE: Other adb files will interfere with bind. " );
  Ada.Text_IO.Put_Line( "STEP 2:     gnatbind mohrada" );
  Ada.Text_IO.Put_Line( "STEP 3:     gnatlink mohrada" );
  Ada.Text_IO.Put_Line( "gnatmake mohrada -- Okay up to date" );
  Ada.Text_IO.Put_Line( "gnatmake mohrada will result in --     gnatbind -x mohrada.ali ; gnatlink mohrada.ali;" );
  Ada.Text_IO.Put_Line( "STEP 4:     ./mohrada" );
end mohrada;

It is a year or so later 2010 and version is 4.4 AFAIK but you can ...

sudo apt-cache search gnat-4

I wonder how the two versions 4.3 and 4.4 can coexist? That seems to defy reason on the surface anyway. I will retry this with V4.4 and see. Still works. Some side information below.

motey@motey-desktop:~/Templates/Ada$ ldd mohrada
        linux-gate.so.1 =>  (0x003d8000)
        libgnat-4.4.so.1 => /usr/lib/libgnat-4.4.so.1 (0x00b06000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00842000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x0059f000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0029e000)
        /lib/ld-linux.so.2 (0x00350000)

with Ada.Text_IO; procedure mohrada is -- An ADA program begin Ada.Text_IO.Put_Line( "This file should be named mohrada.adb to test it. This matches the procedure name." ); Ada.Text_IO.Put_Line( "Ada was named after Ada Lovelace born 1815 died 1852 at the age of 37." ); Ada.Text_IO.Put_Line( "She is often credited as being the first computer programmer." ); Ada.Text_IO.Put_Line( "gcc will fail unless gnat-x.x ( where x is versions ) is installed. It is 4.4 on my system now." ); Ada.Text_IO.Put_Line( " sudo apt-get install gnat-4.4" ); Ada.Text_IO.Put_Line( "Source ada files must be named with extension -- .adb --" ); Ada.Text_IO.Put_Line( "Source ada files must be named the same as the procedure in LOWER CASE!" ); Ada.Text_IO.Put_Line( "STEP 1: gcc -c mohrada.adb" ); Ada.Text_IO.Put_Line( "NOTE: Other adb files will interfere with bind. " ); Ada.Text_IO.Put_Line( "STEP 2: gnatbind mohrada" ); Ada.Text_IO.Put_Line( "STEP 3: gnatlink mohrada" ); Ada.Text_IO.Put_Line( "gnatmake mohrada -- Okay up to date" ); Ada.Text_IO.Put_Line( "gnatmake mohrada will result in -- gnatbind -x mohrada.ali ; gnatlink mohrada.ali;" ); Ada.Text_IO.Put_Line( "STEP 4: ./mohrada" ); end mohrada;

0 comments:

Contributors

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen