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,UTF8 Received: by 10.68.47.134 with SMTP id d6mr203005pbn.0.1316240192924; Fri, 16 Sep 2011 23:16:32 -0700 (PDT) Path: m9ni8029pbd.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada Packages Date: Sat, 17 Sep 2011 08:16:30 +0200 Organization: A noiseless patient Spider Message-ID: References: <9diqfnFu6kU1@mid.individual.net> Mime-Version: 1.0 Injection-Date: Sat, 17 Sep 2011 06:16:32 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="2511"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aU1ZDGxRtSxiYHyLExdLg" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 In-Reply-To: <9diqfnFu6kU1@mid.individual.net> Cancel-Lock: sha1:as62mqpV+Y8sePMs+prBtHtmzUM= Xref: news1.google.com comp.lang.ada:17998 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-09-17T08:16:30+02:00 List-Id: Le 17/09/2011 07:45, George a écrit : > I tried to build a basic package. My two files look like this: > > File 1: basic_num_io.ads > > package Basic_Num_IO is > procedure Num_IO; > end Basic_Num_IO; > [...] > basic_num_io.ads:8:01: end of file expected, file can have only one > compilation unit > Hmmm... It complains at line 8, but what you show has only 3 lines. There must be something else that you didn't notice at the end of the file, and the compiler considers that something as a second compilation unit in the same file. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a déménagé / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00