comp.lang.ada
 help / color / mirror / Atom feed
* Re: ads file not found
  1998-02-14  0:00 ` bklungle
@ 1998-02-14  0:00   ` Ed Falis
  1998-02-16  0:00   ` [student] " cyanide
  1 sibling, 0 replies; 4+ messages in thread
From: Ed Falis @ 1998-02-14  0:00 UTC (permalink / raw)



It's also worth pointing out to the person asking the question (and casual
observers) that this is not an Ada issue, but a specific compiler issue, so
taking the oft-mentioned advice - RTFM  (read the manual).

- Ed Falis
Aonix

bklungle wrote in article <01bd397b$dee126a0$0e2915c0@p5120>...

>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:







^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ads file not found
  1998-02-15  0:00 ads file not found cyanide
@ 1998-02-14  0:00 ` bklungle
  1998-02-14  0:00   ` Ed Falis
  1998-02-16  0:00   ` [student] " cyanide
  0 siblings, 2 replies; 4+ messages in thread
From: bklungle @ 1998-02-14  0:00 UTC (permalink / raw)



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.
> ---------------------------------------------------------------
> 
> 
> 




^ permalink raw reply	[flat|nested] 4+ messages in thread

* ads file not found
@ 1998-02-15  0:00 cyanide
  1998-02-14  0:00 ` bklungle
  0 siblings, 1 reply; 4+ messages in thread
From: cyanide @ 1998-02-15  0:00 UTC (permalink / raw)



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.
---------------------------------------------------------------






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [student] Re: ads file not found
  1998-02-14  0:00 ` bklungle
  1998-02-14  0:00   ` Ed Falis
@ 1998-02-16  0:00   ` cyanide
  1 sibling, 0 replies; 4+ messages in thread
From: cyanide @ 1998-02-16  0:00 UTC (permalink / raw)
  To: bklungle


> 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;".

Hehe, no, it wasn't a joke, I'm just learning. Acualy i figured it out,
I simply didn't realise that the files had to be in the same directory
when compiling.

--
---------------------------------------------------------------
These views do not nessesarily
reflect the views of
the CIA... er... *ahem*
Larry's Pizza,
Cnr Main, Harboyle St, Il.
---------------------------------------------------------------






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-02-16  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-15  0:00 ads file not found cyanide
1998-02-14  0:00 ` bklungle
1998-02-14  0:00   ` Ed Falis
1998-02-16  0:00   ` [student] " cyanide

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