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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e5cc1b2c83f144e8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.21.67 with SMTP id t3mr188215pbe.26.1316240106444; Fri, 16 Sep 2011 23:15:06 -0700 (PDT) Path: m9ni8029pbd.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Ada Packages Date: Fri, 16 Sep 2011 23:15:03 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <9diqfnFu6kU1@mid.individual.net> NNTP-Posting-Host: 8823d99d1d9b30b86de06eb2a87076dc Mime-Version: 1.0 X-Trace: 2c74e8b55bc8cf9c9cb98050d9f5d192 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <9diqfnFu6kU1@mid.individual.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=2c74e8b55bc8cf9c9cb98050d9f5d192 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: news1.google.com comp.lang.ada:17997 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-09-16T23:15:03-07:00 List-Id: On 09/16/2011 10:45 PM, George wrote: > > If I call gnat compile basic_num_io.ads I get the error message: > > basic_num_io.ads:8:01: end of file expected, file can have only one > compilation unit basic_num_io.ads clearly has at least 8 lines in it, not the 3 you presented. Since I don't know what's in this file, I can't really help you. Make sure this file only contains the package specification. In general, you don't need to compile the package specification; that's done automatically when you compile the body. gnatmake basic_num_io.adb should do that for you, once you get the contents of the files correct. > What am I doing wrong? Where can I find it in the documentation? The documentation depends on which version of GNAT you're using. Documentation for GNAT GPL 2011 is at http://www.adacore.com/category/developers-center/reference-library/documentation/ -- Jeff Carter "I'm a kike, a yid, a heebie, a hook nose! I'm Kosher, Mum! I'm a Red Sea pedestrian, and proud of it!" Monty Python's Life of Brian 77