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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dbcd0557f06cdbfa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-14 20:05:35 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!news-out.worldnet.att.net.MISMATCH!wn3feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3B297C1C.2751B56D@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Only one compilation unit. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 15 Jun 2001 03:05:35 GMT NNTP-Posting-Host: 12.86.34.137 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 992574335 12.86.34.137 (Fri, 15 Jun 2001 03:05:35 GMT) NNTP-Posting-Date: Fri, 15 Jun 2001 03:05:35 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:8761 Date: 2001-06-15T03:05:35+00:00 List-Id: Gnat requires each compilation unit to be in a separate file. There is a simple way around this problem. Define one procedure inside the other. Jim Rogers Colorado Springs, Colorado USA McDoobie wrote: > > Alright, I'm writing a small program using two procedures. > > Now I'm coding both procedures within the same .adb file. When I go to > compile the program I get an error that says "end of file expected, can > only have one compilation unit." > > Now, that only happens when writing programs with more than one procedure. > > Do I have to put each different procedure in a seperate text file? Or is > it necessary to write .ads which describe each and every procedure? > Any help would be appreciated. > > Thanks. > > McDoobie > chris@dont.spam.me