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,4ecd967d6c32f7b5,start X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Using GNAT with SunAda? Date: 1996/03/16 Message-ID: #1/1 X-Deja-AN: 142964917 references: <4iaor8$lnk@s-cwis.unomaha.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-03-16T00:00:00+00:00 List-Id: Louis Winter asks "I am one of many programmers using a SunAda compiler for the project I am working on. With many people on the project it is hard to share one license. We have been investigating the use of GNAT to help our situation. Does anybody know of a way to get GNAT to compile files that do not have extensions of .ads and .adb? Our files all have a .a extension. We are working under SunOS 4.1.3." THere is no way to compile files directly that have a .a extension (GCC uses the extension to dermine what language the file is in, GNAT is called only for Ada files, which have an extension of .ada .ads or .adb (for .ada you have to use the Source_File_Name_Praga). Unfortunately, .a standardly is used for archive files. You could use gnatchop all the time, compiling into a temprary directory. You will want to use the -r switch on gnatchop if you do this, so that error messages refer back to the original .a file.