Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-03-12 07:24:35


Maciej Sobczak wrote:
> Hi,
>
> I'm trying to port some code from VC++6.0 to VC++7.1.
> It is a DLL library that uses Boost.Python (from 1.30.2) to expose its
> interface for Python.
> It compiled without problems on VC++6.0, now I get during linking:
>
> file2.obj : error LNK2005: "struct
> swallow_assign::boost::detail::swallow_assign
> boost::tuples::`anonymous namespace'::ignore"
> (?ignore@?A0x3ab6eb85_at_tuples@boost@@3Uswallow_assign_at_detail@23_at_A)
> already defined in file1.obj
>
> and later:
>
> file2.obj : warning LNK4006: "struct
> swallow_assign::boost::detail::swallow_assign
> boost::tuples::`anonymous namespace'::ignore"
> (?ignore@?A0x3ab6eb85_at_tuples@boost@@3Uswallow_assign_at_detail@23_at_A)
> already defined in file1.obj; second definition ignored

If you are using precompiled headers, try making 'ignore' static.
boost/bind/placeholders.hpp has the same problem.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk