* text_io is not a predefined library
@ 2001-03-13 0:35 Andrew Busolin
2001-03-13 0:51 ` Jeff Creem
2001-03-13 4:54 ` DuckE
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Busolin @ 2001-03-13 0:35 UTC (permalink / raw)
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;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text_io is not a predefined library
2001-03-13 0:35 text_io is not a predefined library Andrew Busolin
@ 2001-03-13 0:51 ` Jeff Creem
2001-03-13 4:54 ` DuckE
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Creem @ 2001-03-13 0:51 UTC (permalink / raw)
Hmm...What target and OS? Sounds like a broken install...
Also the correct way to build is
gnatmake hello
no .adb no -c
"Andrew Busolin" <abusolin@chariot.net.au> 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;
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text_io is not a predefined library
2001-03-13 0:35 text_io is not a predefined library Andrew Busolin
2001-03-13 0:51 ` Jeff Creem
@ 2001-03-13 4:54 ` DuckE
2001-03-13 6:18 ` Andrew Busolin
2001-03-13 10:47 ` David C. Hoos, Sr.
1 sibling, 2 replies; 5+ messages in thread
From: DuckE @ 2001-03-13 4:54 UTC (permalink / raw)
Text_Io is a child of Ada.
Try:
with Ada.Text_Io;
use Ada.Text_Io;
SteveD
"Andrew Busolin" <abusolin@chariot.net.au> 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;
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text_io is not a predefined library
2001-03-13 4:54 ` DuckE
@ 2001-03-13 6:18 ` Andrew Busolin
2001-03-13 10:47 ` David C. Hoos, Sr.
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Busolin @ 2001-03-13 6:18 UTC (permalink / raw)
Steve,
I have tried using
with Ada.Text_Io;
use Ada.Text_Io;
however still get the same response! For some strange reason I think it is
not finding the library! The file however does exist in the adalib
directory. I am using the gnat310 compiler. Do you have any other thoughts
that may help me?
Best Regards
Andrew
DuckE <nospam_steved94@home.com> 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" <abusolin@chariot.net.au> 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;
> >
> >
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: text_io is not a predefined library
2001-03-13 4:54 ` DuckE
2001-03-13 6:18 ` Andrew Busolin
@ 2001-03-13 10:47 ` David C. Hoos, Sr.
1 sibling, 0 replies; 5+ messages in thread
From: David C. Hoos, Sr. @ 2001-03-13 10:47 UTC (permalink / raw)
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" <nospam_steved94@home.com> 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" <abusolin@chariot.net.au> 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;
> >
> >
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-03-13 10:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-13 0:35 text_io is not a predefined library Andrew Busolin
2001-03-13 0:51 ` Jeff Creem
2001-03-13 4:54 ` DuckE
2001-03-13 6:18 ` Andrew Busolin
2001-03-13 10:47 ` David C. Hoos, Sr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox