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/17 Message-ID: #1/1 X-Deja-AN: 204563624 references: <32B5A49D.6785@freenet.victoria.bc.ca> organization: New York University newsgroups: comp.lang.ada Date: 1996-12-17T00:00:00+00:00 List-Id: Jamie asks about another plainly illegal program 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.0; I := J * 3; B := Float(I) + A; Put(B); end Think; Certainly you cannot expect GNAT or any other compiler to compile this if you do not supply the package Float_Text_IO (there is no standard package of this name). You need to get a text book that clearly decsribes Ada 95, and thus corresponds with the compiler you are using (which is GNAT in this case). In general people seem to make a lot of trouble for themselves by not having a coherent and relevant text and documentation. In the case of GNAT, you need an Ada 95 text book and gnatinfo.txt (or with GNAT v3.07, the GNAT manuals).