comp.lang.ada
 help / color / mirror / Atom feed
From: gdotone@gmail.com
Subject: Re: how do you compile and run ... (hello world)
Date: Sat, 23 Aug 2014 11:14:22 -0700 (PDT)
Date: 2014-08-23T11:14:22-07:00	[thread overview]
Message-ID: <dd70dc60-870c-4e97-a856-b1a03fd1c493@googlegroups.com> (raw)
In-Reply-To: <ltakk9$rbu$1@dont-email.me>

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
> -- 
> Jeff Carter

actually i should have read past 

You can compile the program using the following command ($ is used as the command prompt in the examples in this document):

 	
$ gcc -c hello.adb

gcc is the command used to run the compiler. This compiler is capable of compiling 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 file.

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. 
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.



      reply	other threads:[~2014-08-23 18:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-23 13:54 how do you compile and run ... (hello world) gdotone
2014-08-23 14:19 ` Dmitry A. Kazakov
2014-08-23 17:57   ` gdotone
2014-08-23 17:56 ` Jeffrey Carter
2014-08-23 18:14   ` gdotone [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox