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,992a5b99b67c1d3a X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Can't use my ".ada" files with Gnat 3.09? Date: 1997/07/22 Message-ID: #1/1 X-Deja-AN: 258086287 References: Organization: New York University Newsgroups: comp.lang.ada Date: 1997-07-22T00:00:00+00:00 List-Id: flower says <> It is all there in the users guide, what documentation are you reading????? In the secion called File Naming Rules (not exactly an obscure title), we find: The default file name is determined by the name of the unit the file contains. The name is formed by taking the full expanded name of the unit and replacing the separating dots with hyphens and using lower case for all letters except that a hyphen in the second character position is replaced by a plus sign. The extension is @file{.ads} for a spec and @file{.adb} for a body as shown in the following table. Seems pretty clear to me, and no, there is nothing "standard" about using an exception of ".ada" -- that is merely the convention used by one particular compiler or user of a compiler in the past, and you just assumed it was some kind of standard without any reason to. The words you quote about file names recognized by gcc is another issue completely. As you know gcc uses the extension of the file to determine what language you are writing in. As you correctly noted in your quote, gcc will assume the language is ada if the file extension is ada, adb, or ads. But that has nothing to do with the default conventions. If you use other than ads and adb, you will need to follow the directions in the docyumentation on using other than default names. If your file extension is other than ada, adb, or ads, then you need to use a -x ada switch to tell gcc that the file is an ada file. But I suspect that the problem here is that in fact you do not have the GNAT documentation at hand! Robert Dewar Ada Corte Technologies