[GCC-XML] problem with gccxml + boost

Jakub Zytka kubol at kormoran.net
Wed Mar 17 05:07:58 EDT 2010


gccxml-0.9.0_pre20090516-r1
boost-1.33.1

sample code:
#include <boost/crc.hpp>

gccxml output:
In file included from test1.cpp:1:
/usr/include/boost/crc.hpp:432: error: redefinition of 'struct 
boost::detail::mask_uint_t<32ul>'
/usr/include/boost/crc.hpp:410: error: previous definition of 'struct 
boost::detail::mask_uint_t<32ul>'

i think the problem is that:
UINT_MAX > USHRT_MAX and ULONG_MAX > UINT_MAX evaluate to true, while unsigned 
int has the same size as unsigned long (so ULONG_MAX == UINT_MAX)

gcc-4.1.2 compiles it just fine. I haven't tried newer gcc.

I haven't found anything regarding this issue in google. Any hints?

regards,
Jakub Zytka




More information about the gccxml mailing list