comp.lang.ada
 help / color / mirror / Atom feed
From: re@waporo.muc.de (Rolf Ebert)
Subject: Re: Using GNAT with SunAda?
Date: 1996/03/18
Date: 1996-03-18T00:00:00+00:00	[thread overview]
Message-ID: <m23f75dgqg.fsf@waporo.muc.de> (raw)
In-Reply-To: dewar.827032188@schonberg

>>>>> "RD" == Robert Dewar <dewar@cs.nyu.edu> 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




  reply	other threads:[~1996-03-18  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4iaor8$lnk@s-cwis.unomaha.edu>
1996-03-16  0:00 ` Using GNAT with SunAda? Robert Dewar
1996-03-18  0:00   ` Rolf Ebert [this message]
1996-03-18  0:00 ` Samuel Tardieu
1996-03-18  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox