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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1edeadc9be5a2350 X-Google-Attributes: gid103376,public From: "Norman H. Cohen" Subject: Re: Ada as 2nd Lang, p. 678 Date: 1997/05/12 Message-ID: <337723FC.706D@watson.ibm.com>#1/1 X-Deja-AN: 241106059 References: <5k92el$bs9@ultranews.duc.auburn.edu> Organization: IBM Thomas J. Watson Research Center Reply-To: ncohen@watson.ibm.com Newsgroups: comp.lang.ada Date: 1997-05-12T00:00:00+00:00 List-Id: John M. Greer wrote: > > I was wondering if anyone could help for a second . . . > Ada as a Second Language (My favorite book) Thank you. > gives this listing > for an example using Generic subprograms, but GNAT complains of end-of-line; > it sees the declaration and stops. > "end of file expected, file can have only one compilation unit > gnatmake: "cyclic_successor_template.adb" compilation error" See page 593, which says, "The GNU/NYU Ada Translator (GNAT) uses an ordinary directory of Ada source files as an environment. Each file contains one compilation unit and has a file name that reflects the name of the compilation unit. (A file containing several compilation units is passed through a program that chops it into smaller pieces, each containing one compilation unit.)" The chopping program is called gnatchop, and it is fully described in the GNAT documentation. -- Norman H. Cohen mailto:ncohen@watson.ibm.com http://www.research.ibm.com/people/n/ncohen