[C++-sig] multiple files linker error

David Abrahams dave at boost-consulting.com
Wed Nov 20 14:11:11 CET 2002


Kerim Borchaev <warkid at hotbox.ru> writes:

> Hello c++-sig,
>
> I'm spliting to multiple files my bpl code of an extension and getting
> this linker error message:
>
> '''
>   error LNK2005: "struct swallow_assign::boost::detail::swallow_assign
>   boost::tuples::`anonymous namespace'::ignore"
>   (?ignore@?A0xdb06aef3 at tuples@boost@@3Uswallow_assign at detail@23 at A)
>   already defined in ...
> '''
>
> Alas I am not able to reproduce it for simpple examples.
> Any ideas why could it happen?

Yeah. Please try checking out the latest

   boost/tuple/detail/tuple_basic_no_partial_spec.hpp

from CVS and see if that fixes your problem
-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list