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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,91829d2306080fa8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-09 08:52:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail From: "Justin Birtwell" Newsgroups: comp.lang.ada Subject: Newbie question on child packages 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 Message-ID: Date: Wed, 09 Oct 2002 15:52:14 GMT NNTP-Posting-Host: 151.202.46.147 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1034178734 151.202.46.147 (Wed, 09 Oct 2002 11:52:14 EDT) NNTP-Posting-Date: Wed, 09 Oct 2002 11:52:14 EDT Xref: archiver1.google.com comp.lang.ada:29620 Date: 2002-10-09T15:52:14+00:00 List-Id: Hello all, I'm trying to figure out how to create and use child packages. Here's what I've got so far. Top level, empty parent package....JB.ads package JB is --empty end JB; A child package spec called A.ads package JB.A is ......... end JB.A; A child package body called A.adb package body JB.A is end JB.A; 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? This seems to defeat the whole point of modularity and independence? Please help. I've read the chapters on Packages and Child packages in Programming Ada 95 and the documentation at http://www.it.bton.ac.uk/staff/je/adacraft but alas no help here. Thanks, Justin