comp.lang.ada
 help / color / mirror / Atom feed
From: kst1ju@herts.ac.uk (Ryan)
Subject: Please help a beginner! (second try)
Date: 1996/02/17
Date: 1996-02-17T00:00:00+00:00	[thread overview]
Message-ID: <4g517q$438@helios.herts.ac.uk> (raw)


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.  




             reply	other threads:[~1996-02-17  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-17  0:00 Ryan [this message]
1996-02-17  0:00 ` Please help a beginner! (second try) smoneill
1996-02-17  0:00   ` Robert Dewar
1996-02-18  0:00 ` Steve Doiel
1996-02-18  0:00   ` Robert Dewar
1996-02-19  0:00 ` Arthur Evans Jr
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox