From: "R" <ruthless@poczta.onet.pl>
Subject: circular unit dependency
Date: 4 Jan 2005 10:31:38 -0800
Date: 2005-01-04T10:31:38-08:00 [thread overview]
Message-ID: <1104863498.813484.201360@z14g2000cwz.googlegroups.com> (raw)
Hello everybody.
I've got a problem with circular unit dependency.
In main package I have:
with base;
with base.derv1;
with base.derv2;
derv1 has tagged record rec1 and derv2 has its rec2
the derv1 and derv2 packages have overritten operator "+"
which spec look like this:
in derv1 package spec and body I have:
with base.derv2; -- info about rec2 needed in "+" spec
...
function "+"(left: rec1; right: base.derv2.rec2) return rec1;
and the same thing with the second package spec and body:
with base.derv1; -- info about rec1 needed in "+"'s spec
...
function "+"(left: rec2; right: base.derv1.rec1) return rec2;
when I compile it with gcc i have:
main.adb:8:06: circular unit dependency
main.adb:8:06: "Main (body)" depends on "base.derv1 (spec)"
main.adb:8:06: "base.derv1 (spec)" depends on "base.derv2 (spec)"
main.adb:8:06: "base.derv2 (spec)" depends on "base.derv1 (spec)"
main.adb:8:06: "base.derv1 (spec)" depends on "base.derv1 (body)"
main.adb:8:06: "base.derv1 (body)" depends on "base.derv1 (spec)"
main.adb:8:06: "base.derv1 (spec)" depends on "base.derv1 (spec)"
well - I need info about other record because it's the parameter of
both function"+"
any idea? I tried to remove 'with' statement but then I received msgs
like:
"xxx" not declared in "yyy"
thanks in advance
best regards
R
next reply other threads:[~2005-01-04 18:31 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-04 18:31 R [this message]
2005-01-04 23:45 ` circular unit dependency Randy Brukardt
2005-01-05 8:35 ` Martin Krischik
2005-01-05 8:55 ` Duncan Sands
2005-01-05 0:26 ` Stephen Leake
-- strict thread matches above, loose matches on Subject: below --
2003-05-23 9:20 Mirko Aigner
2003-05-23 11:37 ` Jeffrey Creem
2003-05-23 12:12 ` David C. Hoos
2003-05-23 18:08 ` Stephen Leake
2003-05-24 22:12 ` Robert I. Eachus
2003-05-26 8:05 ` Mirko Aigner
1998-05-26 0:00 Brendan Reville
1997-05-24 0:00 jdlopez
1997-05-24 0:00 ` Michael F Brenner
1997-05-25 0:00 ` Jon S Anthony
1997-05-26 0:00 ` John G. Volan
1997-05-26 0:00 ` Fergus Henderson
1997-05-27 0:00 ` Jon S Anthony
1997-05-28 0:00 ` John G. Volan
1997-06-01 0:00 ` John G. Volan
1997-05-31 0:00 ` Kevin Cline
1997-05-31 0:00 ` John G. Volan
1997-06-01 0:00 ` Kevin Cline
1997-06-01 0:00 ` John G. Volan
1997-06-02 0:00 ` John G. Volan
1997-05-31 0:00 ` Matthew Heaney
[not found] ` <33932F31.4399@sprintmail.com>
1997-06-02 0:00 ` Matthew Heaney
1997-06-03 0:00 ` W. Wesley Groleau (Wes)
1997-06-03 0:00 ` John G. Volan
1997-06-03 0:00 ` John G. Volan
1997-06-05 0:00 ` Matthew Heaney
1997-06-05 0:00 ` John G. Volan
1997-06-06 0:00 ` Stephen Schmid
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox