Boost logo

Boost Testing :

Subject: [Boost-testing] [XL C/C++][IBM_Canada_Ltd][serialization][multi_index] strange error with boost/serialization/force_include.hpp
From: joaquin_at_[hidden]
Date: 2009-03-30 10:48:27


Currently, a serialization test for Boost.MultiIndex is failing for XL
C/C++ at
IBM_Canada_Ltd regression runner:

Compile [2009-03-29 15:21:08 UTC]: fail

    xlC -c -DBOOST_ALL_NO_LIB=1 -qcpluscmt -qNOOPTimize
  -qnoinline -g -qfullpath -qfuncsect -qeh -qrtti -I".." -o

"../boost/archive/detail/oserializer.hpp", line 162.52: 1540-0063 (S)
The text "__attribute__" is unexpected.

(see )

The problem lies in boost/serialization/force_include.hpp, which,
for reasons unbeknownst to me, defines BOOST_USED as the
compiler-specific qualifier __attribute__ ((used)). Looking at the
code for force_include.hpp ( ) seems
like this definition of BOOST_USED can only take place if
either __GNUC__ or __INTEL_COMPILER is defined, which
does not seem to be the case here.

Any clues? Thank you in advance,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Boost-testing list run by mbergal at