What is latest full version for AIX xlC V8.0 ?
> /usr/vacpp/bin/xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.????
Thanks
Alex Vinokur
Answer: 22
- Go http://www-01.ibm.com/software/awdtools/caix/
- Search right side: Highlights
- Select: Latest updates for supported IBM C and C++ compilers
Or go directly : http://www-01.ibm.com/support/docview.wss?uid=swg24022586
( Valid only for April 2009 PTFs )
hth
Hajo
Hajo, thank you.
Predefined macros __xlC__ and __IBMCPP__ indicate the level of the XL
C++ compiler: version, release, and modification number. But they
don't contain full version.
For intance,
> xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.0014
Neither __xlC__ nor __IBMCPP__ contain 0014.
Is there any way (system call) to get within C++ program full version
of the the XL C++ compiler?
Alex Vinokur
I was going to point you to the IBM C++ Cafe
http://www-949.ibm.com/software/rational/cafe/community/ccpp/
but its looks like that you asked there as well. Since i can not help
further - i even do not understand fully what you trying to archive -
but maybe Gary Hook can give an answer. In case you get a satiesfying
answer from the IBM Cafe please post it to this thread as well.
cheers
Hajo
Hi,
--- aix.cpp ---
// ==================================================
// __xlC__ indicates the level of the XL C++ compiler
// as a three-digit hexadecimal constant, representing
// version, release, and modification number.
// Using the XL C compiler also automatically defines this macro.
// ==================================================
#include <iostream>
int main()
{
#if (defined __xlC__)
std::cout << "Version : " << (__xlC__ >> 8) << std::endl;
std::cout << "Release : " << ((__xlC__ >> 4) & 0xF) <<
std::endl;
std::cout << "Modification: " << (__xlC__ & 0xF) << std::endl;
#endif
return 0;
}
---------------
> xlC_r aix.cpp
> a.out
Version : 8
Release : 0
Modification: 0
> xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.0014
So, program aix.cpp doesn't generate full version (including 0014 in
our case).
Is it possible within C/C++ program to get full version of compiler.
Regards,
Alex Vinokur
Your program is some how incorrect. (IMHO)
1) The __xlC__ macro simply does not provide the Fix level ( Thats
what yor are looking for )
2) Even if you change from __xlC__ to __xlc your programm simply does
not print the fix level.
According to
only the macro "__xlc__" will have also the (F)ix level . All other
provide a maximum of (V)ersion.(R)elease.(M)odification
hth
Hajo
Thank you very much.
__xlc__ shows 8.0.0.14
The problem is that __xlc__ defined in C-program, but undefined in C+
+-program.
Alex Vinokur