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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,86f72a7c465f6eb3,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "Andrew" Newsgroups: comp.lang.ada Subject: seperate compilation for protected objects Date: 31 Mar 2005 04:08:25 -0800 Organization: http://groups.google.com Message-ID: <1112270905.678889.118410@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 4.228.123.30 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1112270911 20674 127.0.0.1 (31 Mar 2005 12:08:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 31 Mar 2005 12:08:31 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=4.228.123.30; posting-account=Kq9unQ0AAADh_grEViI3JGqegXKDDjxt Xref: g2news1.google.com comp.lang.ada:10182 Date: 2005-03-31T04:08:25-08:00 List-Id: Hello, I am trying to do seperate compilation with a protected object. I have something similar to the following: === file tasks.ads === package Tasks is protected type Boob is . . . end Boob; end Tasks; === file tasks.adb === package body Tasks is protected body Boob is seperate; end Tasks; I am using Gnat3.15p on FreeBSD Unix. I get similar compilation messages to the below: tasks.adb:<#>:<#>: all components must be declared in spec ... If I put the declaration for the protected body in tasks.ads and remove it from the package body then I get: tasks.ads:<#>:<#>: proper body not allowed in package spec tasks.ads:<#>:<#>: all components must be declared in spec ... If I put the "is seperate" statement in both files I get: tasks.adb:<#>:<#>: all components must be declared in spec I don't get it. Andrew