comp.lang.ada
 help / color / mirror / Atom feed
* Newbie question on child packages
@ 2002-10-09 15:52 Justin Birtwell
  2002-10-09 16:12 ` Matthew Heaney
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Justin Birtwell @ 2002-10-09 15:52 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-10-11  5:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09 15:52 Newbie question on child packages Justin Birtwell
2002-10-09 16:12 ` 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

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