comp.lang.ada
 help / color / mirror / Atom feed
* How did dynamic elaboration fix cyclic elaboration error???
@ 2006-04-06 22:59 stuart clark
  2006-04-06 23:45 ` Robert A Duff
  2006-04-07  6:02 ` Simon Wright
  0 siblings, 2 replies; 3+ messages in thread
From: stuart clark @ 2006-04-06 22:59 UTC (permalink / raw)


I have some old UATL code i had compiled up into a library. When i
attempted to create an executable proram that used thelibrary i got a
bind error, "cyclic elaboration error".  The info on the error report
was;

1. uatl_stim_response_device_interface must be elaborated before
uatl_function_task

2. uatl_function_task must be elaborated before
uatl_stim_response_message_routing.

3. uatl_stim_response_message_routing must be elaborated before
uatl_stim_response_device_interface

that is

a. uatl_stim_response_device_interface with's
uatl_stim_response_message_routing

b. uatl_stim_response_message_routing with's utal_function_task

c.  utal_function_task with's uatl_stim_response_device_interface.

i had the appropriate pragma elaborates in the bodies for each of the
packages involed in the above errors, ie

uatl_stim_response_device_interface package body had pragam
elaborate(uatl_stim_response_message_routing).

We are using Gnat Pro here at work and one of the guys i'm working with
suggested turning on dynamic_elaboration in the UATL library, ie the
ada compile gnat switch -gnatE. Note I also took out the pragma
elaborates described above.

This worked !!! the bind error disappeared.

DOES ANYONE KNOW WHY???

Stuart Clark.




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

end of thread, other threads:[~2006-04-07  6:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-06 22:59 How did dynamic elaboration fix cyclic elaboration error??? stuart clark
2006-04-06 23:45 ` Robert A Duff
2006-04-07  6:02 ` Simon Wright

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