
22 Oct
2013
22 Oct
'13
3 p.m.
Kilian Kilger wrote:
Hi,
the macro __IBMCPP__ at z/OS is "41130" for my system. The output of xlc++ -qversion is
z/OS V1.13 XL C/C++.
For AIX the macro __IBMCPP__ evaluates to "1210" and "xlc++ -qversion" evaluates to:
IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.0000.0004.
So we really have two different compilers for z/OS and AIX, with different versioning and behaviour.
Indeed, thank you. As Bjorn pointed out, we probably need to use __xlC__ macro instead of __IBMCPP__ to identify XL C++ for AIX, per http://sourceforge.net/p/predef/wiki/Compilers/