comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: building a package -- newbie
Date: Fri, 12 Nov 2004 02:17:18 GMT
Date: 2004-11-12T02:17:18+00:00	[thread overview]
Message-ID: <O2Vkd.77247$HA.50920@attbi_s01> (raw)
In-Reply-To: 3143fb37.0411110817.6e5200da@posting.google.com

There is probably a GNAT users guide on your system.  If you can't find it,
there is one here: http://lml.ls.fi.upm.es/manuales/gnat_ug.html, it is not
the latest version but should answer your question.

Look in the section: "File Naming Rules".

Steve
(The Duck)

"backdoc" <backdoctor@gmail.com> wrote in message
news:3143fb37.0411110817.6e5200da@posting.google.com...
> I am working on an assignment for my Software Engineering class.  We
> must write a package and put statistical functions in it.  I am using
> Gnat and Linux.  I've written a half dozen little applications using
> Ada.  But, this is my first experience with building my own package.
>
> So far, I've gotten the basic main procedure written.  As long as I
> don't try to WITH my package in, it will compile, read a binary file
> and print the file contents.  It's actually the float data I will have
> to write statistical functions for.
>
> My instructor gave us the specifications.  So, I just copied those
> into a separate file.  I plan to put the body of the package in the
> same file as the specifications.  But, I wanted to get the main
> procedure working with only the specifications first.
>
> My first real question is, "what extension should I use to name my
> package?"  statistal_functions.ads?  statistal_functions.adb?  Do I
> need to compile it before it can be WITH'd into my main program?  I
> compile my main procedures with "gnatgcc -c file".  Is that the same
> for the package?
>
> Here's links to the code:
>      specs:
>      http://www.usmstudent.com/tmp/STATISTICAL_FUNCTIONS.ads
>
>      main:
>      http://www.usmstudent.com/tmp/pkg.adb
>
> Any suggestions?
>
> TIA,
> backdoc





      parent reply	other threads:[~2004-11-12  2:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3143fb37.0411110817.6e5200da@posting.google.com>
2004-11-11 16:25 ` building a package -- newbie Jacob Sparre Andersen
2004-11-11 18:27 ` Martin Krischik
2004-11-12  9:15   ` Martin Dowie
2004-11-12  9:54     ` Martin Krischik
2004-11-12 10:51       ` Sascha Wilde
2004-11-12  2:17 ` Steve [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