AIX 5.3 xlC error on ptr_list.hpp
Hi,
The simple test program a.cpp below has no problem to compile on linux g++,
but failed on AIX xlC compiler. Does any one know if the problem is related to
the xlC compiler or the ptr_list.hpp file ?
Thanks,
Gary
4:43pm 19 Ggfu@sds:~/tmp> xlC_r -I/home_dir/Ggfu/BOOST/boost_1_36_0 -c a.cpp
"/home_dir/Ggfu/BOOST/boost_1_36_0/boost/ptr_container/ptr_list.hpp", line 44.9: 1540-0400 (S) "boost::ptr_list::release" has a conflicting declaration.
"/home_dir/Ggfu/BOOST/boost_1_36_0/boost/ptr_container/ptr_list.hpp", line 44.9: 1540-0425 (I) "release" is defined on line 44 of "/home_dir/Ggfu/BOOST/boost_1_36_0/boost/ptr_container/ptr_list.hpp".
----------------- a.cpp
#include
Gary Fu skrev:
Hi,
The simple test program a.cpp below has no problem to compile on linux g++, but failed on AIX xlC compiler. Does any one know if the problem is related to the xlC compiler or the ptr_list.hpp file ?
Well, I don't think AIX x1C was one of the officially supported compilers for 1.36, was it? Maybe it's time to complain to your compiler vendor that it does not compile some of the Boost libraries ... -Thorsten
Gary Fu wrote:
Hi,
The simple test program a.cpp below has no problem to compile on linux g++, but failed on AIX xlC compiler. Does any one know if the problem is related to the xlC compiler or the ptr_list.hpp file ?
[...] The trunk is tested against XL C/C++ V9.0.0.3, see http://beta.boost.org/development/tests/trunk/developer/summary.html for reference. The release branch is not tested for this compiler, but I don't see any specific reason why the results should differ much from the current trunk results. Especially http://beta.boost.org/development/tests/trunk/developer/ptr_container.html shows that at least ptr_list should work with this compiler. Which version of the compiler are you using? You probably need to update your compiler. HTH, Markus
participants (3)
-
Gary Fu
-
Markus Schöpflin
-
Thorsten Ottosen