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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,33d86ea4039d454a X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: [student help] Won't allow package body. Date: 1998/05/07 Message-ID: <35517e67.0@205.238.18.7>#1/1 X-Deja-AN: 351051665 References: <35514AAC.D46B535C@iinet.net.au> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: RAINet Newsgroups: comp.lang.ada Date: 1998-05-07T00:00:00+00:00 List-Id: Oliver White wrote in message <35514AAC.D46B535C@iinet.net.au>... >I'm compiling a package, the ads file begins as so - > >> generic >> type ObjectType is private; >> package LinkedListPackage is >> >but when I compile, I get this message - > >"generic package LinkedListPackage does not allow a body" > This is either one of two things: 1. The package does not allow a body because none is required -- e.g., the package spec defines no subprogram, so no body is required. If no body is required, none is allowed. 2. There is an error of some sort in the code which prevents error-free compilation of the package spec. Then, in may cases you will get this error. In general, you need to provide a complete compilation unit in your request for help, because there is not enough information in an incomplete code snippet such as you have supplied to answer your question. Also, as a general rule, you should tell us what is the compiler and version you are using, and on what platform. With complete information, I' sure one of us will be glad to help. David C. Hoos, Sr.