comp.lang.ada
 help / color / mirror / Atom feed
From: "bm34mailing<<SPAM-SUCKS>>" <"bm34mailing<<SPAM-SUCKS>>"@yahoo.ca>
Subject: Newbie Visibility Problem TEXT_IO.INTEGER_IO
Date: Wed, 02 Jun 2004 19:37:56 GMT
Date: 2004-06-02T19:37:56+00:00	[thread overview]
Message-ID: <o0qvc.42$Wg.3@news04.bloor.is.net.cable.rogers.com> (raw)

Hi All:

I am very new to Ada and am having a visibility problem that I am not 
sure how to get around. I am trying to build the "MostUltimateAnswer" 
sample application from the LAW web site (Section 1.2.12).

http://www.scism.sbu.ac.uk/law/Section1/chap2/s1c2p12.html

I have ensured that I copied the source code verbatim (less the line 
numbers) and get the following errors:

D:\Projects\Personal\ada>gnatmake -f -u MostUltimateAnswer.adb
gcc -c mostultimateanswer.adb
mostultimateanswer.adb:15:25: "Text_Io" is not visible
mostultimateanswer.adb:15:25: non-visible declaration at a-textio.ads:51
mostultimateanswer.adb:16:08: "Intio" is undefined
mostultimateanswer.adb:47:04: invalid parameter list in call (use -gnatf 
for det
ails)
mostultimateanswer.adb:58:04: invalid parameter list in call (use -gnatf 
for det
ails)
gnatmake: "mostultimateanswer.adb" compilation error

Can someone give me a hint as to the problem? I am using GNAT 3.15p and 
am thinking that I am missing a library or some settings need to be 
changed. At the beginning of the program, I do have the lines:

with Ada.Text_IO;
use Ada.Text_Io;

so I believe Text_io should be visible.

However, the tutorial or any reference I can find make no mention of 
having to change settings.

I have successfully built "UltimateAnswer" as shown in 1.2.1 with no 
problems.

http://www.scism.sbu.ac.uk/law/Section1/chap2/s1c2p1.html

Thanks,

Bill



             reply	other threads:[~2004-06-02 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 19:37 bm34mailing<<SPAM-SUCKS>> [this message]
2004-06-02 19:48 ` Newbie Visibility Problem TEXT_IO.INTEGER_IO Simon Wright
2004-06-02 21:39   ` bm34mailing<<SPAM-SUCKS>>
2004-06-03  8:32     ` Martin Krischik
2004-06-03 14:47       ` bm34mailing<<SPAM-SUCKS>>
2004-06-03  7:16 ` Dmitry A. Kazakov
replies disabled

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