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 -
Displays the version and release of the compiler being invoked. cc can also be xlc, xlc_r, etc.
Quick/short man page
In other words, just cc with no arguments.
=== update === from the compiler reference (PDF)
Syntax
For more details, see Example 1.
or
For more details, see Example 2. Examples
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)