comp.lang.ada
 help / color / mirror / Atom feed
From: "Andrew" <andrew@carroll-tech.net>
Subject: Re: seperate compilation for protected objects
Date: 1 Apr 2005 00:25:27 -0800
Date: 2005-04-01T00:25:27-08:00	[thread overview]
Message-ID: <1112343927.274041.27730@g14g2000cwa.googlegroups.com> (raw)
In-Reply-To: <5sug2d.qmp.ln@hunter.axlog.fr>

Thanks Jean-Pierre.  The problem was that I spelled separate wrong.
Once I corrected it everything went well.

Jean-Pierre Rosen wrote:
> Andrew a écrit :
> > 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
> >     <blah>
> >     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
> > ...
> >
> A wild guess, since you didn't show the body:
> Didn't you declare components in the body? i.e.
>
> protected body Boob is
>      X : integer; -- Not allowed
>      ....
> end Boob;
>
> Remember that a protected object is actually more like a record than
a
> package; it has no variables, only components (like record
components),
> and they are not allowed in the body.
>
> Presumably, this has nothing to do with separate compilation...
>
> --
> ---------------------------------------------------------
>             J-P. Rosen (rosen@adalog.fr)
> Visit Adalog's web site at http://www.adalog.fr




      reply	other threads:[~2005-04-01  8:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-31 12:08 seperate compilation for protected objects Andrew
2005-03-31 12:15 ` Peter Hermann
2005-03-31 12:20   ` Andrew
2005-03-31 12:22 ` Dr. Adrian Wrigley
2005-03-31 12:29   ` Andrew
2005-03-31 13:44 ` Jean-Pierre Rosen
2005-04-01  8:25   ` Andrew [this message]
replies disabled

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