Re: [Boost-users] [tuple] [iterator] Multiple definition linker errors

Mark Ruzon wrote:
I have an executable with two .cpp files, each of which includes a header file that in turn includes boost headers. When I link them (gcc 3.2.3) I am greeted with multiple definition errors on somewhat random symbols like '(anonymous namespace)::_1' (through _9) from bind...
This can be caused by precompiled headers not handling anonymous namespaces correctly. You can use the following patch:
http://boost.cvs.sourceforge.net/boost/boost/boost/bind/placeholders.hpp?r1=1.13&r2=1.14
to fix that.
That worked great, Peter, thanks! Anyone know a similar trick for boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type) on zip_iterator.hpp:320? This is my only other duplicate symbol. Mark

Mark Ruzon wrote:
That worked great, Peter, thanks! Anyone know a similar trick for
boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)
on zip_iterator.hpp:320? This is my only other duplicate symbol.
This line appears to be missing an 'inline': http://boost.cvs.sourceforge.net/boost/boost/boost/iterator/zip_iterator.hpp?r1=1.10&r2=1.11

Peter Dimov
Mark Ruzon wrote:
That worked great, Peter, thanks! Anyone know a similar trick for
boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)
on zip_iterator.hpp:320? This is my only other duplicate symbol.
This line appears to be missing an 'inline':
http://boost.cvs.sourceforge.net/boost/boost/boost/iterator/zip_iterator.hpp?r1=1.10&r2=1.11
Thanks again, Peter. I'll try checking the repository when I run into future problems. Is there a fan club I can join? Mark
participants (3)
-
Mark Ruzon
-
Mark Ruzon
-
Peter Dimov