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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b86e978488429db7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-28 15:07:11 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dan@irvine.com (Dan Eilers) Newsgroups: comp.lang.ada Subject: Re: Compilation error with GNAT Date: 28 Jan 2004 15:07:11 -0800 Organization: http://groups.google.com Message-ID: References: <6c8918f3.0401281100.2a000840@posting.google.com> NNTP-Posting-Host: 66.126.103.122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1075331231 8242 127.0.0.1 (28 Jan 2004 23:07:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 28 Jan 2004 23:07:11 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:5017 Date: 2004-01-28T15:07:11-08:00 List-Id: bhorowitdevnull@yahoo.com (Ben Horowitz) wrote in message news:<6c8918f3.0401281100.2a000840@posting.google.com>... >I'm trying to sort through a compilation problem that I'm having with >Gnat. I have a large set of source files, some of which are spec >only, and some of which have both spec and body. The file that is >giving me a problem has only a spec. I am using the XXX.1.ada and >XXX.2.ada naming convention. > >I first try to compile this file using gnatmake and the project file >below. Gnat complains that the file has only a spec, so it can't >generate code. Later, it reports a compilation error. The output of >gnatmake and the project file I used are given below. map_simple_cached_multiple_unbounded_managed_iterator is a package that requires a body. So you should either figure out why you don't have one, or if you don't actually use this package, you could simply delete the spec. The GNAT compiler should really be saying "linking error", rather than "compilation error", because in Ada95 missing bodies (even of generic packages) are considered harmless until link time. -- Dan Eilers