From: "bklungle" <bklungle@ix.netcom.com>
Subject: Re: ads file not found
Date: 1998/02/14
Date: 1998-02-14T10:55:06-08:00 [thread overview]
Message-ID: <01bd397b$dee126a0$0e2915c0@p5120> (raw)
In-Reply-To: 34E5C031.1AD45111@iinet.net.au
Assuming you really are a beginner and this is not a pre-April fools joke,
the message you are getting implies that you have created a file such as
"filename.adb" which contains the phrase "package body filename is .....
end filename;". The Ada compiler then assumes the existence of a
corresponding "filename.ads" which contains the phrase "package filename is
.... end filename:". This is called the filename package specification and
should contain the definitions and object declarations you want to export
to the external world (some other package uses your packages objects). A
real simple example follows:
-----------------------------------------------------------------
$cat junque.ads
package junque is
type doit_type is new integer;
procedure doit(x : in doit_type);
end junque;
$cat junque.adb
package body junque is
procedure doit(x : in doit_type) is
-- local stuff
begin
-- my wonderful code
end doit;
end junque;
-----------------------------------------------------------------
Again, assuming this is not a joke, you might consider getting hold of one
of the many fine books on the Ada language and perusing it. Not lecturing,
just suggesting.
cheers...bob
cyanide <ojw@iinet.net.au> wrote in article
<34E5C031.1AD45111@iinet.net.au>...
> I get this error, any ideas how to fix it?
>
> --
> ---------------------------------------------------------------
> These views do not nessesarily
> reflect the views of
> the CIA... er... *ahem*
> Larry's Pizza,
> Cnr Main, Harboyle St, Il.
> ---------------------------------------------------------------
>
>
>
next prev parent reply other threads:[~1998-02-14 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-15 0:00 ads file not found cyanide
1998-02-14 0:00 ` bklungle [this message]
1998-02-14 0:00 ` Ed Falis
1998-02-16 0:00 ` [student] " cyanide
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox