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-07-09 17:19:48 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub.sdsu.edu!newspeer.cts.com!galanthis.cts.com!127.0.0.1.MISMATCH!not-for-mail Sender: kst@king.cts.com Newsgroups: comp.lang.ada Subject: Re: Only one compilation unit. References: <3B497F21.8CD784D8@brighton.ac.uk> From: Keith Thompson Date: 09 Jul 2001 17:19:47 -0700 Message-ID: X-Newsreader: Gnus v5.5/Emacs 20.3 NNTP-Posting-Host: 209.68.192.180 X-Trace: 994724387 nntp.cts.com 767 209.68.192.180 Xref: archiver1.google.com comp.lang.ada:9696 Date: 2001-07-09T17:19:47-07:00 List-Id: John English writes: > 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? > > For GNAT, yes. GNAT requires each library unit to be in a separate file. Nested procedures, of course, can be in the same file. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Cxiuj via bazo apartenas ni.