Command line for Ada version?
Asked Answered
B

2

6

I am looking for a command line to check for the version of my Ada installation. Any help ?

Bagnio answered 12/2, 2011 at 6:6 Comment(0)
M
5

Since you listed gcc as your compiler this gcc -x Ada --version should work.

Alternatively, if you're using GNAT, gnat compile --version should work. This command should give you the version of GNATMAKE.

Maintenon answered 12/2, 2011 at 6:37 Comment(5)
I'm not sure what the default language version is for gnat 4.4.1 (I use GNAT GPL, where it's still Ada 95). To ensure a particular language version, use the -gnat95 or -gnat05 switches. (Or -gnat83 if you're working with old code, or, if you're feeling frisky, you can try out -gnat12).Vibration
@Marc C : Got that ! .... -gnat05 Ada 2005 mode (default) :-) ... thanks for gnat12 - did not know about that one !Bagnio
"gnatmake --version" If you want your version of gnatmake, should match up with the answer provided by Shark8.Brooklyn
The "which compiler is this" command that I was told by AdaCore is "gnatls -v". This also tells you the compiler search paths. The end of the "gnatmake -v" output tells you what language versions are supported and which is the default.Snowblind
None of these work on my CentOS 5.6 machine except gnatls -v. I only get the GCC version otherwise.Bloat
L
5

Recommended way is: gnatls -v, output would be like this:

GNATLS Pro 6.3.1 (20100111-43)

or:

GNATLS GPL 2010 (20100603)

to get version relations between Pro, GPL and GCC, see here.

Lowbrow answered 15/3, 2011 at 10:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.