Boost logo

Boost Users :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-12-16 10:12:26


thierry.lartigue_at_[hidden] wrote:

>
> C for AIX Compiler, Version 6
>
> I compile example1.cpp
> (/usr/local/boost/boost_1_33_0/libs/dynamic_bitset/example) and I have
> errors :
>
> xlC -o example1 example1.cpp -I/usr/local/boost/boost_1_33_0 -L
> /usr/local/boost/boost_1_33_0/lib -lboost_regex-xlc-1_33
>
> ld : 0711-317 ERREUR : Symbole non défini : boost::dynamic_bitset<unsigned
> long,std::allocator<unsigned long> >::ulong_width
> ld : 0711-317 ERREUR : Symbole non défini : boost::dynamic_bitset<unsigned
> long,std::allocator<unsigned long> >::bits_per_block
> ld : 0711-345 Pour plus de détails, utilisez
> l'option -bloadmap ou -bnoquiet.
>
> Why?

Could you try the following workaround? Just add the code to
boost/dynamic_bitset/dynamic_bitset.hpp, just after the definition of the
class dynamic_bitset. Note that you probably may have to play around with
the syntax a bit, this is from the top of my head and not tested.

#if BOOST_WORKAROUND( __IBMCPP__, <=600 )

template<typename Block, typename Allocator>
dynamic_bitset<Block, Allocator>::block_width_type const
dynamic_bitset<Block, Allocator>::bits_per_block;

template<typename Block, typename Allocator>
dynamic_bitset<Block, Allocator>::block_width_type const
dynamic_bitset<Block, Allocator>::ulong_width;

#endif

HTH, Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net