comp.lang.ada
 help / color / mirror / Atom feed
* Newbie Visibility Problem TEXT_IO.INTEGER_IO
@ 2004-06-02 19:37 bm34mailing<<SPAM-SUCKS>>
  2004-06-02 19:48 ` Simon Wright
  2004-06-03  7:16 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 6+ messages in thread
From: bm34mailing<<SPAM-SUCKS>> @ 2004-06-02 19:37 UTC (permalink / 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



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

end of thread, other threads:[~2004-06-03 14:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 19:37 Newbie Visibility Problem TEXT_IO.INTEGER_IO bm34mailing<<SPAM-SUCKS>>
2004-06-02 19:48 ` 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

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