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.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6d6e2be55d9e0faf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-13 02:49:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!newsxfer.interpacket.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!telocity-west!TELOCITY!newsrump.sjc.telocity.net!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada References: <3aad6b31_5@news.chariot.net.au> Subject: Re: text_io is not a predefined library MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-Trace: NjggTm9BdXRoVXNlciBURUxPQ0lUWS1SRUFERVJTIDIxNi4yMjcuNDcuNDkgIFR1ZSwgMTMgTWFy!IDIwMDEgMDI6NDc6NDQgUFNU X-Abuse-Info: Please forward ALL headers when reporting abuse. X-Complaints-To: abuse@telocity.net NNTP-Posting-Date: Tue, 13 Mar 2001 02:47:44 PST Date: Tue, 13 Mar 2001 04:47:46 -0600 Xref: supernews.google.com comp.lang.ada:5676 Date: 2001-03-13T04:47:46-06:00 List-Id: Using Text_IO in place of Ada.TextIO is not the problem. Note the following from RM95, J.1; The following library_unit_renaming_declarations exist: 2 with Ada.Unchecked_Conversion; generic function Unchecked_Conversion renames Ada.Unchecked_Conversion; 3 with Ada.Unchecked_Deallocation; generic procedure Unchecked_Deallocation renames Ada.Unchecked_Deallocation; 4 with Ada.Sequential_IO; generic package Sequential_IO renames Ada.Sequential_IO; 5 with Ada.Direct_IO; generic package Direct_IO renames Ada.Direct_IO; 6 with Ada.Text_IO; package Text_IO renames Ada.Text_IO; 7 with Ada.IO_Exceptions; package IO_Exceptions renames Ada.IO_Exceptions; 8 with Ada.Calendar; package Calendar renames Ada.Calendar; 9 with System.Machine_Code; package Machine_Code renames System.Machine_Code; -- If supported. The earlier suggestion by Jeff Creem that it is a GNAT installation problem is the correct explanation for the phenomenon. "DuckE" wrote in message news:dKhr6.559748$U46.16631404@news1.sttls1.wa.home.com... > Text_Io is a child of Ada. > > Try: > with Ada.Text_Io; > use Ada.Text_Io; > > SteveD > > "Andrew Busolin" wrote in message > news:3aad6b31_5@news.chariot.net.au... > > Hi there, > > > > I have written a little hello world program in an effort to test out the > ada > > compiler I have recently downloaded. I am able to compile it using > > gcc -c -gnats -c hello.adb, however when I try to gnatmake it using > > gnatmake -c hello.adb it returns "ada.text_io" is not a predefined library > > unit > > compilation abandoned!!! > > > > Can someone please tell me why this is and how I can fix it! > > > > Best Regards > > > > Andrew Busolin > > > > > > with Text_Io; > > use Text_Io; > > > > procedure hello is > > begin > > Put("hello"); > > end hello; > > > > > >