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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8f734cdbc8408497 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Gnat 2.06 Ada95 (unix) File format???? Date: 1996/06/12 Message-ID: #1/1 X-Deja-AN: 159842634 sender: tardieu@gargantua.enst.fr references: <4pmfr5$epc@news3.digex.net> to: Mike Ibarra content-type: text/plain; charset=iso-8859-1 organization: TELECOM Paris mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-06-12T00:00:00+00:00 List-Id: >>>>> "Mike" == Mike Ibarra writes: Mike> In my brief experience with this Ada95 Compiler, it seems that Mike> it expects certain file formats. Are physical files limited to Mike> one compilation unit per file? It doesn't seem to like it when Mike> there is a spec, body and proc all in the same physical file. Mike> Is there a way around this? Mike> Also on user defined inherited packages, i.e., PACKAGE Mike> mypack.childpack.newpack IS, Mike> The compiler seems to expect the physical file name to match the Mike> actual package name. Is this true as well, or is there any way Mike> around this? First of all, you're using a very very very old version of GNAT. The current one (3.05) is available by anonymous FTP on ftp.cs.nyu.edu in directory /pub/gnat. GNAT is source based, this means that it doesn't keep any information into a private library but needs the source files to retrieve the information. This is why it needs to know where it can find the files. Starting from GNAT 3.03 (or 3.01, I don't remember), you can use a file called gnat.adc which contains pragma to map a unit name onto a file name. GNAT doesn't support AFAIK multiple units in a single file. You may use 'gnatchop' on every file you have to generate the right file name. The best thing to do IMHO is to download the latest GNAT version and read the gnatinfo.txt file which comes with the distribution. Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire