comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Curnow <richard@curnow.demon.co.uk>
Subject: Re: Newbe compile problems
Date: 1996/12/16
Date: 1996-12-16T00:00:00+00:00	[thread overview]
Message-ID: <m2d8waji5g.fsf@curnow.demon.co.uk> (raw)
In-Reply-To: 32B437AC.209EE9B8@freenet.victoria.bc.ca


James Amendolagine <uq274@freenet.victoria.bc.ca> writes:

> 
>  with Float_Text_IO;
>  use Float_Text_IO;
>  procedure Think is
>    A, B : Float := 0.0; -- A and B initially zero; note the period.
>    I, J : Integer := 1;
>  begin
>    A := B + 7.;       <<<<<<<<<<<< NEEDS TO BE 7.0 not 7.
>    I := J * 3;
>    B := Float(I) + A;
>    Put(B);
>  end Think;
> 
> And the error message:
> 
> cd /home/jamie/learnAda/think/
> gnatmake think.adb 
> gcc -c think.adb
> think.adb:7:14: real literal cannot end with point

When I made the change to the line after 'begin', it worked fine (except
I had to comment out the with, use and Put lines because I didn't have
that package visible).  This was with gnat 3.04 on Linux.

-- 
Richard P. Curnow
Stevenage, England




  parent reply	other threads:[~1996-12-16  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-15  0:00 Newbe compile problems James Amendolagine
1996-12-15  0:00 ` Robert Dewar
1996-12-15  0:00 ` Tom Moran
1996-12-16  0:00 ` Richard Curnow [this message]
1996-12-17  0:00 ` David Wheeler
1996-12-19  0:00   ` Jesse E. Smith
  -- strict thread matches above, loose matches on Subject: below --
1996-12-16  0:00 Jamie Amendolagine
1996-12-17  0:00 ` Robert Dewar
1996-12-19  0:00 ` David Wheeler
1996-12-19  0:00   ` Larry Kilgallen
1996-12-18  0:00 Sazonov Cyril
1996-12-19  0:00 ` Keith Thompson
1996-12-19  0:00 ` Robert Dewar
1996-12-24  0:00 Sazonov Cyril
replies disabled

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