comp.lang.ada
 help / color / mirror / Atom feed
From: James Amendolagine <uq274@freenet.victoria.bc.ca>
Subject: Newbe compile problems
Date: 1996/12/15
Date: 1996-12-15T00:00:00+00:00	[thread overview]
Message-ID: <32B437AC.209EE9B8@freenet.victoria.bc.ca> (raw)


Hello,

   I am just starting with ADA. I am going through the ADA turorial, and
can't get some source code to compile. Here's the source:

 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.;
   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
gnatmake: "think.adb" compilation error
Compilation exited abnormally with code 2 at Sun Dec 15 09:34:00

I am using Redhat Linux. With gnat-3.07. --Other examples like "hello
world" compiled OK. Solutions?
Thanks in advance.

    Jamie




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

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-15  0:00 James Amendolagine [this message]
1996-12-15  0:00 ` Newbe compile problems Tom Moran
1996-12-15  0:00 ` Robert Dewar
1996-12-16  0:00 ` Richard Curnow
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 ` Robert Dewar
1996-12-19  0:00 ` Keith Thompson
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