
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@tuples@boost@@3Uswallow_assign@detail@23@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@tuples@boost@@3Uswallow_assign@detail@23@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.