[C++-sig] Duplicate "ignore"(again...) and more. (Latest CVS, VC .NET 2003)

Kerim Borchaev warkid at hotbox.ru
Fri Oct 17 10:51:13 CEST 2003


Hello c++-sig,

As I get it VC7.1 also has this bug with anonymous namespace:

... : error LNK2005:
"struct swallow_assign::boost::detail::swallow_assign
boost::tuples::`anonymous namespace'::ignore"
... already defined in ...

I've read the archives and found that this bug has already been fixed
for Visual C version <=7 in tuple_basic_no_partial_spec.hpp:

    namespace {
#if (defined(BOOST_MSVC) && BOOST_MSVC <= 1300) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031)
      static
#endif 
      detail::swallow_assign ignore;
    }

But VC7.1 is compiled with tuple_basic.hpp that has no such
a workaround.

And another one:
... : error LNK2005:
"class boost::arg<6> `anonymous namespace'::_6"
... already defined in ...

fixes if BOOST_MSVC <= 1300  replaced with BOOST_MSVC <= 1310 in
boost/bind/placeholders.hpp line 39

It would be nice if the patch was supplied by someone with knowledge
of how to do it:-)

Best regards,
 Kerim                          mailto:warkid at hotbox.ru





More information about the Cplusplus-sig mailing list