bash-3.00# lslpp -L | grep xlC
xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3
xlC.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.rte 11.1.0.1 C F XL C/C++ Runtime
xlC.rte 11.1.0.1 C F XL C/C++ Runtime
how to check xlc compiler version using command line? example gcc --version
though it is showing in installed state, how to verify it using command line?
Last edited by Scott; 05-10-2013 at 06:00 AM..
Reason: Code tags
how to check xlc compiler version using command line? example gcc --version
Honestly, i don't quite get it. lslpp is the common method to get version information in AIX an it works already from the command line.
Quote:
Originally Posted by manoj.solaris
though it is showing in installed state, how to verify it using command line?
I might be slow, but i don't get this either. Of course you can only obtain a version information if the compiler is installed (the packages shown in your example aren't the compiler at all, just the runtimes).
Location: on the road for work; home is private time
Posts: 456
Thanks Given: 10
Thanked 108 Times in 100 Posts
As Bakunin stated, your lslpp output does not include the IBM C compiler. Those are the levels of the rte (run-time-environment) aka libC et al. That would probably be vaccp.*
To specifically answer you question: once installed -
Code:
cc -qversion
Displays the version and release of the compiler being invoked. cc can also be xlc, xlc_r, etc.
Quick/short man page
Code:
cc
In other words, just cc with no arguments.
=== update === from the compiler reference (PDF)
Syntax
Code:
cc -qversion
For more details, see Example 1.
or
Code:
cc -qversion=verbose
For more details, see Example 2.
Code:
Defaults
-qnoversion
Code:
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. If you want to save this information to the output
object file, you can do so with the -qsaveopt -c options.
-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.
For more details, see Example 1.
-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.
For more details, see Example 2.
Predefined macros
None.
Examples
Code:
Example 1:
IBM XL C for AIX, V12.1
Version: 12.01.0000.0001
Code:
Example 2:
IBM XL C for AIX, V12.1
Version: 12.01.0000.0001
Driver Version: 12.01(C) Level: 060414
C Front End Version: 12.01(C) Level: 060419
High Level Optimizer Version: 12.01(C) and 14.01(Fortran) Level: 060411
Low Level Optimizer Version: 12.01(C) and 14.01(Fortran) Level: 060418
Last edited by MichaelFelt; 05-13-2013 at 03:48 PM..
Hi ,
Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9.
We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux.
Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Hello,
We are migrating some applications from previously running on an AIX system to a Linux RedHat system.
I was tasked with recompiling some of the code. Unfortunatly I am a big novice on this.
So i have the commands used to compile the code with xlc compiler in the AIX environment and i am... (0 Replies)
Hi,
I'm new, here, and I'm searching for a simple solution for a simple problem.
I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2.
The fact is that I should be able to... (4 Replies)
Hi all,
I would like to compile a program and get current errors and warnings report to me as « gcc -Wall ».
Does someone can give me these options to get an equivalent ?
Or the ommon option used to put them in a CFLAGS in a Makefile.
Something like :
xlc -O2 -Wall my_prog.c -o... (5 Replies)
Hi all.
I have a simple question.
There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12?
Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
Hi Team
I have a native applicaiton built on AIX using the xLC v8
Which could be the possible impacts from a code change point of view if I'll compile with the xLC v10?
Thanks
Marco (0 Replies)
according those steps
1. Copy your 26 digit hexadecimal license key in a plain text (ASCII) file.
2. Save the file as aCC.cwd in the following location:
/opt/aCC/newconfig/aCC.cwd
3. export the variable ST_CODEWORD to point to the file where the license key is stored.
... (0 Replies)