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,9c8533728e8d73d0,start X-Google-Attributes: gid103376,public From: kst1ju@herts.ac.uk (Ryan) Subject: Please help a beginner! (second try) Date: 1996/02/17 Message-ID: <4g517q$438@helios.herts.ac.uk>#1/1 X-Deja-AN: 139810513 organization: University of Hertfordshire newsgroups: comp.lang.ada Date: 1996-02-17T00:00:00+00:00 List-Id: Could somebody please help me with what I am sure is a simple problem. I need to do some basic text and integer IO. Apparently I need the TEXT_IO library for this - it is on my system, and I believe I am using it in the following code. However, when I compile the program, the errors mentioned in the comments are given out : with TEXT_IO; package INT_IO is new TEXT_IO.INTEGER_IO(INTEGER); with INT_IO; procedure proc1 is begin TEXT_IO.PUT("Hello"); -- fails ... "TEXT_IO not defined" INT_IO.PUT(2); -- accepted end proc1; procedure main is begin TEXT_IO.PUT("Hello"); -- fails ... "TEXT_IO not defined" INT_IO.PUT(2); -- fails ... "INT_IO not defined" end main; The system is a DEC, the compiler is just called 'ada', and it's ada83, not ada95, and that's about all I know. The errors refer me to section 8.3 of the LRM, but that doesn't help! I am fairly experienced in C/C++, Pascal, etc, and have fiddled with Ada a few years ago, but don't have access to any of that source code to work from. Please help! In this newsgroup, or by email to kst1ju@herts.ac.uk Thanks, Nigel.