
Hello, If more than one source file includes boost/iterator/zip_iterator.hpp, the loader complains about a multiply defined function: tsa@mops2.lsstcorp.org:~/VW/TSA> g++ -o nothing nothingMain.cc nothing.cc /tmp/ccT5Bn0N.o: In function `boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)': nothing.cc:(.text+0x0): multiple definition of `boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)' /tmp/ccH8Z9eR.o:nothingMain.cc:(.text+0x0): first defined here collect2: ld returned 1 exit status I'm using boost_1_33_1. The source files are attached. Regards, Tim Axelrod

Hi,
This has been fixed in CVS HEAD and future versions.
If you want to hack up the code, declare the function tuple_equal to be inline.
Chris
On 1/31/07, Tim Axelrod
Hello,
If more than one source file includes boost/iterator/zip_iterator.hpp, the loader complains about a multiply defined function:
tsa@mops2.lsstcorp.org:~/VW/TSA> g++ -o nothing nothingMain.cc nothing.cc /tmp/ccT5Bn0N.o: In function `boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)': nothing.cc:(.text+0x0): multiple definition of `boost::detail::tuple_impl_specific::tuple_equal(boost::tuples::null_type, boost::tuples::null_type)' /tmp/ccH8Z9eR.o:nothingMain.cc:(.text+0x0): first defined here collect2: ld returned 1 exit status
I'm using boost_1_33_1. The source files are attached.
Regards, Tim Axelrod
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Chris Weed
-
Tim Axelrod