NAME
version - display version identification of object file or
binary
SYNOPSIS
version [ filename...]
DESCRIPTION
The version command displays the version of the named
file(s).
USAGE
Type: version filename
If the current working directory is not the installation
directory of the compiler(s) and other files to be checked,
filename must be the full path to their installation
directory.
Further, you can invoke version also to display the version
ID of the various executables that operate during a
compilation session by using the -V flag in the command line
for the compilers: cc, f95, CC.
EXAMPLES
If the current working directory contains the file(s) whose
version are to be displayed, type the command and
filename(s), for example:
version f95
version iropt
If the current working directory does not contain the
file(s), the argument must comprise the full path and
directory or filename to the file(s) to be checked for
version numbers. For example, in the following commands
path must give the full pathname to the file(s).
version /<path>/f95
version /<path>/prod/iropt
NOTES
The version command identifies the version numbers of the
installed Sun Studio compilers and tools and their
associated libraries and other files.
The version command seeks and displays any string of ASCII
characters following the @(#)RELEASE VERSION string. This
string must be identified correctly in the source file(s),
depending on operating system's version. This string should
be in a #pragma ident, for example:
#pragma ident @(#)RELEASE VERSION 8.2
The version information string following this version-key
string can be any sequence of printable characters
terminated by a NEWLINE or NULL. The version command
displays whatever information is thus included in any file
accessed by this command.
The version command utility given no arguments shows
information on the platform, the products installed and the
configuration they belong to; for example:
% version
Machine hardware: sun4u
OS version: 5.9
Processor type: sparc
Hardware: SUNW,Sun-Blade-1500
The following components are installed on your system:
Sun Studio 11
Sun Studio 11 C Compiler
Sun Studio 11 C++ Compiler
Sun Studio 11 Tools.h++ 7.1
Sun Studio 11 C++ Standard 64-bit Class Library
Sun Studio 11 Garbage Collector
Sun Studio 11 Fortran 95
Sun Studio 11 Debugging Tools (including dbx)
Sun Studio 11 Debugger GUI
Sun Studio 11 Performance Analyzer (including collect, ...)
Sun Studio 11 X-Designer
Sun Studio 11 VIM editor
Sun Studio 11 XEmacs editor
Sun Studio 11 Native Connector Tool
Sun Studio 11 Performance Library
Sun Studio 11 LockLint
Sun Studio 11 Building Software (including dmake)
Sun Studio 11 Documentation Set
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.8 2005/05/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.8 2005/05/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.2 2005/05/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.5 2005/05/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.5 2005/05/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.7 2005/05/16