comp.lang.ada
 help / color / mirror / Atom feed
* Please help a beginner! (second try)
@ 1996-02-17  0:00 Ryan
  1996-02-17  0:00 ` smoneill
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ryan @ 1996-02-17  0:00 UTC (permalink / 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.  




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-02-19  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-02-17  0:00 Please help a beginner! (second try) Ryan
1996-02-17  0:00 ` 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

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