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: David Hopkins Subject: Re: GNAT 301a with Win95 Date: 1996/06/19 Message-ID: <31C7FB3D.6C21@vitro.com>#1/1 X-Deja-AN: 161019260 references: <01bb5da2.dc327500$33668acd@iris.gomontana.com> to: Darrin content-type: text/plain; charset=us-ascii organization: Vitro Corporation mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.01 (Win95; I) Date: 1996-06-19T00:00:00+00:00 List-Id: Darrin wrote: > > Hello everyone!! > > 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 > > 2. warning: file name does not match unit name, should be "test.adb" > > About the first one. My program starts with: with text_io; use text_io; > There is not a (spec). As for the second, the main procedure is called > test and the file is test.adb. I even tried to compile the examples that > come with GNAT and they don't work either. What am I missing? > > BTW, the commad line is as follows: > > $ c:/ada/gnat301a/gcc -c c:/ada/lab3/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. > Thanks for your help. > > Darrin Sometimes it is hard to get to what you really want in the help files, but I think its the best that can be done considering what there is to explain. What I think your problem might be is that there is a bunch of lines that need to be added to your autoexec to make this run, including things like setting the path to the compiler. Since your command line calls gcc with the directory name on it, I think you haven't done that, I expect that Dewar will probably answer this soon, and maybe I'm wrong, but I thought I'd send that along in case you need something right away. Take care.