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.42.152.201 with SMTP id j9mr11397007icw.5.1408817662292; Sat, 23 Aug 2014 11:14:22 -0700 (PDT) X-Received: by 10.140.37.39 with SMTP id q36mr769qgq.10.1408817662242; Sat, 23 Aug 2014 11:14:22 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!uq10no4015447igb.0!news-out.google.com!j6ni7969qas.0!nntp.google.com!i13no2270480qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 23 Aug 2014 11:14:22 -0700 (PDT) In-Reply-To: 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 References: <7a845fe8-bea5-4870-8273-8a33f0757866@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: how do you compile and run ... (hello world) From: gdotone@gmail.com Injection-Date: Sat, 23 Aug 2014 18:14:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:188633 Date: 2014-08-23T11:14:22-07:00 List-Id: On Saturday, August 23, 2014 1:56:25 PM UTC-4, Jeffrey Carter wrote: > You might find it useful to read the top-secret GNAT documentation. > http://docs.adacore.com/gnat-unw-docs/html/gnat_ugn.html > --=20 > Jeff Carter actually i should have read past=20 You can compile the program using the following command ($ is used as the c= ommand prompt in the examples in this document): =09 $ gcc -c hello.adb gcc is the command used to run the compiler. This compiler is capable of co= mpiling programs in several languages, including Ada and C. It assumes that= you have given it an Ada program if the file extension is either `.ads' or= `.adb', and it will then call the GNAT compiler to compile the specified f= ile. because i got the following error: error: invalid value 'ada' in '-x ada' still do. but Dmitry answer was perfect and worked. thanks jeff, i will try read that documentation to the end. hey, but don't go to far though, i'm sure i will have questions.=20 this is day one of learning ADA. i'm using an old book though ada 95 program solving and program design, 2ed= . thanks again, g.