comp.lang.ada
 help / color / mirror / Atom feed
From: Jeff Creem <jcreem@yahoo.com>
Subject: Re: Detecting version of installed GNAT
Date: Sat, 12 Nov 2005 08:59:16 -0500
Date: 2005-11-12T08:59:16-05:00	[thread overview]
Message-ID: <KbCdnTryodeCaOjeRVn-ow@comcast.com> (raw)
In-Reply-To: <e%ldf.7486$2y.3767@newsread2.news.atl.earthlink.net>

Marc A. Criley wrote:
> I'm looking for suggestions for programatically determining what version 
> of GNAT is installed on a system.
> 
> I'd hoped there was something like "gnatmake -v" that would just display 
> a version string, but gnatmake doesn't have that feature.  I could use 
> "gcc -v" and then deduce from its version what version of GNAT was 
> installed, but I'd prefer something more closely tied to GNAT itself.  
> And since some distributions of gnat use "gnatcc" instead of "gcc", I'd 
> have to account for that as well.
> 
> It looks like I could compile a small file and then look at its .ali 
> file, since that contains a compiler version string, but I'd still like 
> to see something a little more direct.
> 
> Thanks for any suggestions.
> 
> -- Marc A. Criley
> -- McKae Technologies
> -- www.mckae.com
> -- DTraq - XPath In Ada - XML EZ Out
> 

Perhaps something like

gnatlink -v | grep GNATLINK

There is info in that for both FSF derived versions and GNAT GPL 
versions...Though its form is pretty different in each case.



  reply	other threads:[~2005-11-12 13:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12 13:21 Detecting version of installed GNAT Marc A. Criley
2005-11-12 13:59 ` Jeff Creem [this message]
2005-11-12 14:18   ` Ed Falis
2005-11-12 20:24     ` Simon Wright
2005-11-14  8:39       ` Alex R. Mosteo
2005-11-12 14:18 ` Pascal Obry
2005-11-12 17:42   ` Björn Persson
2005-11-14 13:28   ` Marc A. Criley
replies disabled

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