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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8fe003b966ed27e4 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Newbe compile problems Date: 1996/12/19 Message-ID: #1/1 X-Deja-AN: 204910226 distribution: su references: organization: New York University keywords: ada compillation error newsgroups: comp.lang.ada Date: 1996-12-19T00:00:00+00:00 List-Id: Cyril said "#1 >> with Float_Text_IO; Are you sure that this package exists? The standard package is called TEXT_IO.FLOAT_IO. Or if the IO package is of your own, then check whether its has been compiled _before_ you're trying to compile your sample. #2 >> A, B : FLOAT := 0.0; This may an error too, the thing is that decimal IS NOT a sign of a FLOAT-type constant, it is a sign of a FIXED-type constant. The FLOAT-type constant should be written so 12.34E56, it IS to have a power_of_ten postfix. This detail is mentioned in the LRM ( I've got the Ada83 one only )." Both points are quite wrong, even for Ada 83. There is no package Text_IO.Float_IO in either Ada 83 or Ada 95 (this is a generic package, not a package), and in any case, surely since the questioner is using Ada 95, we should suggest the proper package name Ada.Float_Text_IO. For the second point, 0.0 is of course a legal float literal, I am not quite sure what leads to this misconception. Finally Cyril, why not get hold of GNAT so that you have access to Ada 95. You might want to contact Sergey Rybin at Moscow State University for information on how to obtain GNAT (he certainly has appropriate internet connections available there, and could perhaps supply a copy to you).