From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.87.202 with SMTP id ba10mr7257304pdb.1.1408802041998; Sat, 23 Aug 2014 06:54:01 -0700 (PDT) X-Received: by 10.140.93.181 with SMTP id d50mr198582qge.0.1408802041943; Sat, 23 Aug 2014 06:54:01 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!r2no5585113igi.0!news-out.google.com!j6ni8038qas.0!nntp.google.com!m5no2205272qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 23 Aug 2014 06:54:01 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.178.36.13; posting-account=bDZo8goAAADwRO71ouDFRMCIZ96XBCK3 NNTP-Posting-Host: 75.178.36.13 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7a845fe8-bea5-4870-8273-8a33f0757866@googlegroups.com> Subject: how do you compile and run ... (hello world) From: gdotone@gmail.com Injection-Date: Sat, 23 Aug 2014 13:54:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21883 Date: 2014-08-23T06:54:01-07:00 List-Id: i have downloaded gnat gpl edition from libre.adacore.com i have installed gnat. it is located /usr/local/gnat/ i have created a file called hello.adb, found in ADA95 textbook, with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line ("Hello World"); end Hello; i have cd into /usr/local/gnat/bin typed: gnat and got this GNAT GPL 2014 (20140331) Copyright 1996-2014, Free Software Foundation, Inc. List of available commands gnat bind gnatbind gnat chop gnatchop gnat clean gnatclean gnat compile gnatmake -f -u -c gnat check gnatcheck gnat elim gnatelim gnat find gnatfind gnat krunch gnatkr gnat link gnatlink gnat list gnatls gnat make gnatmake gnat metric gnatmetric gnat name gnatname gnat preprocess gnatprep gnat pretty gnatpp gnat stack gnatstack gnat stub gnatstub gnat test gnattest gnat xref gnatxref All commands except chop, krunch and preprocess accept project file switches -vPx, -Pprj and -Xnam=val i then cd back into my home dir : cd ~ where the hello.adb file is located i entered: gnat compile hello.adb i got back: gcc -c hello.adb in the directory i see: hello.adb hello.ali hello.c.save hello.o what do i need to do to run the program ... and compile if i have done something wrong?