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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,514d84d6930cf67 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s01.POSTED!53ab2750!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <3143fb37.0411110817.6e5200da@posting.google.com> Subject: Re: building a package -- newbie X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 24.21.42.251 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s01 1100225838 24.21.42.251 (Fri, 12 Nov 2004 02:17:18 GMT) NNTP-Posting-Date: Fri, 12 Nov 2004 02:17:18 GMT Organization: Comcast Online Date: Fri, 12 Nov 2004 02:17:18 GMT Xref: g2news1.google.com comp.lang.ada:6163 Date: 2004-11-12T02:17:18+00:00 List-Id: 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" 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