comp.lang.ada
 help / color / mirror / Atom feed
From: "Justin Birtwell" <jbirtwell@yahoo.com>
Subject: Newbie question on child packages
Date: Wed, 09 Oct 2002 15:52:14 GMT
Date: 2002-10-09T15:52:14+00:00	[thread overview]
Message-ID: <OgYo9.40823$Oa1.39958@nwrddc02.gnilink.net> (raw)

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
    <code>
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





             reply	other threads:[~2002-10-09 15:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09 15:52 Justin Birtwell [this message]
2002-10-09 16:12 ` Newbie question on child packages Matthew Heaney
2002-10-09 16:20   ` Justin Birtwell
2002-10-09 16:54     ` Matthew Heaney
2002-10-09 18:45     ` Preben Randhol
2002-10-09 16:18 ` Jim Rogers
2002-10-09 19:16   ` Simon Wright
2002-10-09 21:06     ` Stephen Leake
2002-10-11  5:00       ` Simon Wright
2002-10-09 16:43 ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox