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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,91829d2306080fa8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-09 09:12:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Newbie question on child packages Date: Wed, 9 Oct 2002 12:12:05 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:29621 Date: 2002-10-09T12:12:05-04:00 List-Id: "Justin Birtwell" wrote in message news:OgYo9.40823$Oa1.39958@nwrddc02.gnilink.net... > > Top level, empty parent package....JB.ads > package JB is > --empty > end JB; You should mark this as a "pure" package: package JB is pragma Pure; end; > A child package spec called A.ads > package JB.A is > ......... > end JB.A; The mapping of file names to compilation units is compiler-specific. If you're using GNAT, for example, then this file would need to be named jb-a.ads. (However, if you're using GNAT, it should have given you a warning when you tried to compile the spec.) > A child package body called A.adb > package body JB.A is > > end JB.A; In GNAT, this needs to be named jb-a.adb. > Here's my problem. When I go to compile and build A I get an error from > A.adb "file jb-A.ads not found". I made sure to compile A.ads but I'm still > getting the same error. All the files are in the same folder. Do I have to > change the name of A.ads to JB.A.ads? or JB-A.ads? The latter.