Re: Setting up an Ada hello world project



"markww" <markww@xxxxxxxxx> writes:

This is the first time I'm using Ada, sorry if my questions seem
absoultely ridiculous to you. I am using GPS - GNAT for windows. I
created a new project called 'Ada_LinkedList'. I'd just like to be able
to output something to screen, I'm not sure how what the compiler
wizard created for me combines with the hello world snippet I found to
produce an exe which will do that,

I don't use GPS so I can't comment on it, but I've found that for a
start it is sometimes easier to do without IDEs and 'wizards'. Just
save this

with Ada.Text_IO;

procedure Hello is
begin
Ada.Text_IO.Put_Line("Hello, world!");
end Hello;

to a file called 'hello.adb' and then type 'gnatmake hello.adb' on the
console.

--
Michael Bode
.



Relevant Pages

  • Re: Newsreader program
    ... on Unix. ... MS will continue to sell Windows to corporate users, who will merely throw additional money at the problems created by MS. ... Besides, if Linux becomes everything Windows is, it will end up sucking as much as Windows, while merely costing less -- and then everybody will use it, and it will become the main security target. ... Have you considered hacking away at a PDA GPS unit, such as the Garmin iQue 3600? ...
    (rec.outdoors.rv-travel)
  • Re: GnatBench (from GPL edition)
    ... quite right on MS Windows. ... Hmm, I know all of them, and I see no any sufficient difference to GPS. ... permanently forgets its layout. ... I didn't use Eclipse yet. ...
    (comp.lang.ada)
  • Re: GnatBench (from GPL edition)
    ... quite right on MS Windows. ... Hmm, I know all of them, and I see no any sufficient difference to GPS. ... permanently forgets its layout. ... C/Java mess. ...
    (comp.lang.ada)
  • Help needed .... corrupt Windows CE device
    ... I have a GPS unit that has become mildly corrupted and I need help fixing it. ... This device is a general purpose Windows CE device, it's hackable and I can access it with Active Sync 4.5. ... The corruption is mild in that the unit still works but the GPS function doesn't. ... The second problem is that when I try to put the GPS software onto the disk, I get an error that the disk is out of space before all of the necessary software is transferred. ...
    (microsoft.public.pocketpc)
  • Re: How far can GPS signals penetrate?
    ... The signals will not penetrate metals or very small amounts of water. ... > route on my GPS. ... > had tracked the car journey quite accurately - certainly too well to be ... much better than a commercial aircraft with tiny, vertical windows. ...
    (sci.geo.satellite-nav)