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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e283979660f903f X-Google-Attributes: gid103376,public From: griest-tom@cs.yale.edu (Tom Griest) Subject: Re: GNAT 301a with Win95 Date: 1996/06/19 Message-ID: <4q93m5INNe1g@RA.DEPT.CS.YALE.EDU>#1/1 X-Deja-AN: 161025569 distribution: World references: <01bb5da2.dc327500$33668acd@iris.gomontana.com> organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 newsgroups: comp.lang.ada Date: 1996-06-19T00:00:00+00:00 List-Id: "Darrin" writes: > I have been trying to get GNAT to compile a program that I know works >with my University account. I have continued to get two errors: > > 1. "text_io (spec)" is not a language defined unit This type of error usually indicates that you have not setup the environment variable ADA_INCLUDE_PATH which tells gnat where to find things like text_io. This is done by running the "setpath" batch file, which is mentioned in both the setup program and the very beginning of the readme file. If you run the setpath program and have not configured Win95 to have sufficent environment space, then you get an error message while the setpath is running. Since you didn't mention any such message, my guess is that this isn't your problem. However, if you ever do see an "out of environment space" message, the readme file tells you how to increase your environment space. > 2. warning: file name does not match unit name, should be "test.adb" [...] > for the second, the main procedure is called >test and the file is test.adb. >BTW, the commad line is as follows: > > $ c:/ada/gnat301a/gcc -c c:/ada/lab3/test.adb This does not look like a typical Win95 command invocation. For one thing, you should be using '\' instead of '/'. Is it possible you are running some command shell other than the one that comes with Win95? Try invoking the setpath program, changing directory to the place where your program is, and typing gcc -c test.adb >I admit that I haven't exhausted all attempts at reading the help file, >but then again, the help file is somewhat confusing...at least to me. Perhaps you could send me (via email) specific examples of what you find confusing and I will see if they can be made simpler. -Tom