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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e5cc1b2c83f144e8,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.14.132 with SMTP id p4mr180483pbc.14.1316238328969; Fri, 16 Sep 2011 22:45:28 -0700 (PDT) Path: m9ni8013pbd.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: George Newsgroups: comp.lang.ada Subject: Ada Packages Date: 17 Sep 2011 05:45:27 GMT Message-ID: <9diqfnFu6kU1@mid.individual.net> Mime-Version: 1.0 X-Trace: individual.net EkX9Bd5zeZrkw1mwsmcUJwnKmdLuwXrEPSzf42vBgEetkn4Nhy Cancel-Lock: sha1:tA24r8CsDM3omHflX+JpqJFg/Dw= User-Agent: Pan/0.132 (Waxed in Black) Xref: news1.google.com comp.lang.ada:17995 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-09-17T05:45:27+00:00 List-Id: Hi All, 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; File 2: basic_num_io.adb with text_io; use text_io; package body Basic_Num_IO is procedure Num_IO is package Integer_InOut is new Integer_IO(integer); package Float_InOut is new Integer_IO(float); begin null; end Num_IO; end Basic_Num_IO; 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 What am I doing wrong? Where can I find it in the documentation? Kind regards George