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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ecd967d6c32f7b5 X-Google-Attributes: gid103376,public From: re@waporo.muc.de (Rolf Ebert) Subject: Re: Using GNAT with SunAda? Date: 1996/03/18 Message-ID: #1/1 X-Deja-AN: 143189441 distribution: world sender: re@waporo.muc.de references: <4iaor8$lnk@s-cwis.unomaha.edu> organization: R. Ebert at home reply-to: Rolf.Ebert@waporo.muc.de (Rolf EBERT) newsgroups: comp.lang.ada Date: 1996-03-18T00:00:00+00:00 List-Id: >>>>> "RD" == Robert Dewar writes: > 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." RD> THere is no way to compile files directly that have a .a extension RD> (GCC uses the extension to dermine what language the file is in, RD> GNAT is called only for Ada files, which have an extension of .ada RD> .ads or .adb (for .ada you have to use the RD> Source_File_Name_Praga). Unfortunately, .a standardly is used for RD> archive files. RD> You could use gnatchop all the time, compiling into a temprary RD> directory. You will want to use the -r switch on gnatchop if you do RD> this, so that error messages refer back to the original .a file. You do can use *.a source files directly with GNAT. Use the -x option and specify `ada' as language. Like in $ gcc -c -x ada test.a This works with Gnat 3.01 and 3.03 Rolf