From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP, WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32e5f5710e731d24,start X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!wns13feed!worldnet.att.net!63.223.4.70!c01.usenetserver.com!news.usenetserver.com!cyclone01.bloor.is.net.cable.rogers.com!news04.bloor.is.net.cable.rogers.com.POSTED!12dc6cf53ab2750!not-for-mail From: "bm34mailing<>" <"bm34mailing<>"@yahoo.ca> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Newbie Visibility Problem TEXT_IO.INTEGER_IO Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 02 Jun 2004 19:37:56 GMT NNTP-Posting-Host: 69.193.110.79 X-Complaints-To: abuse@rogers.com X-Trace: news04.bloor.is.net.cable.rogers.com 1086205076 69.193.110.79 (Wed, 02 Jun 2004 15:37:56 EDT) NNTP-Posting-Date: Wed, 02 Jun 2004 15:37:56 EDT Xref: controlnews3.google.com comp.lang.ada:1034 Date: 2004-06-02T19:37:56+00:00 List-Id: 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