-qversion

Category

Listings, messages, and compiler information

Pragma equivalent

None.

Purpose

Displays the version and release of the compiler being invoked.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-noversion---------------.   
>>- -q--+-version--+------------+-+----------------------------><
                   '-=--verbose-'     

Defaults

-qnoversion

Parameters

verbose
Additionally displays information about the version, release, and level of each compiler component installed.

Usage

When you specify -qversion, the compiler displays the version information and exits; compilation is stopped

-qversion specified without the verbose suboption shows compiler information in the format:
product_nameVersion: VV.RR.MMMM.LLLL
where:
V
Represents the version.
R
Represents the release.
M
Represents the modification.
L
Represents the level.
Example:
IBM XL C/C++ for AIX, V10.1
Version: 10.01.0000.0001
-qversion=verbose shows component information in the following format:
component_name Version: VV.RR(product_name) Level: component_level
where:
component_name
Specifies an installed component, such as the low-level optimizer.
component_level
Represents the level of the installed component.
Example:
IBM XL C/C++ for AIX, V10.1
Version: 10.01.0000.0001
Driver Version: 10.01(C/C++) Level: 060414
C Front End Version: 10.01(C/C++) Level: 060419
C++ Front End Version: 10.01(C/C++) Level: 060420
High Level Optimizer Version: 10.01(C/C++) and 12.01(Fortran) Level: 060411
Low Level Optimizer Version: 10.01(C/C++) and 12.01(Fortran) Level: 060418

If you want to save this information to the output object file, you can do so with the -qsaveopt -c options.

Predefined macros

None.

Related information