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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f63c22a739f1e4e5,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z34g2000cwc.googlegroups.com!not-for-mail From: "stuart clark" Newsgroups: comp.lang.ada Subject: How did dynamic elaboration fix cyclic elaboration error??? Date: 6 Apr 2006 15:59:33 -0700 Organization: http://groups.google.com Message-ID: <1144364373.517170.92020@z34g2000cwc.googlegroups.com> NNTP-Posting-Host: 202.20.20.129 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1144364379 2383 127.0.0.1 (6 Apr 2006 22:59:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 Apr 2006 22:59:39 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 sbuxinfra2.baea.com.au:80 (squid/2.5.STABLE7), 1.0 sbproxy.baea.com.au:3128 (squid/2.5.STABLE4) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000cwc.googlegroups.com; posting-host=202.20.20.129; posting-account=wseb7A0AAACoGSN9Y-Rms_un18idFn-Q Xref: g2news1.google.com comp.lang.ada:3739 Date: 2006-04-06T15:59:33-07:00 List-Id: 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.