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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9a8547d5b2e10418,start X-Google-Attributes: gid103376,public From: "bklungle" Subject: Re: ads file not found Date: 1998/02/14 Message-ID: <01bd397b$dee126a0$0e2915c0@p5120>#1/1 X-Deja-AN: 325091920 References: <34E5C031.1AD45111@iinet.net.au> Organization: B & D Associates X-NETCOM-Date: Sat Feb 14 10:55:06 AM PST 1998 Newsgroups: comp.lang.ada Date: 1998-02-14T10:55:06-08:00 List-Id: 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 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. > --------------------------------------------------------------- > > >