Opened 16 years ago
Closed 16 years ago
#648 closed Support Requests (None)
Compiling Shmem
Reported by: | nobody | Owned by: | Ion Gaztañaga |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
Hi, I'm trying to use Shmem for a project but it does not compile. Has anybody got these errors or know how to solve them? Thanks in advance. P.D.: Linux FC5 out of the box config. You can reach me at bblasi at jblasi dot c o m by email. cc ../../test/flat_tree_test.cpp -Wall -g -pthread - lstdc++ -lrt -lboost_thread -I../../../.. -L/usr/lib - o ../../bin/linux/test_flat_tree_test.out ../../../../boost/shmem/detail/utilities.hpp: In function âvoid boost::shmem::detail::swap(T&, T&) [with T = boost::shmem::detail::flat_tree<int, int, boost::shmem::detail::identity<int>, std::less<int>, std::allocator<int> >::value_compare]â: ../../../../boost/shmem/containers/flat_tree.hpp:228: instantiated from âvoid boost::shmem::detail::flat_tree<Key, Value, KeyOfValue, Compare, Alloc>::swap (boost::shmem::detail::flat_tree<Key, Value, KeyOfValue, Compare, Alloc>&) [with Key = int, Value = int, KeyOfValue = boost::shmem::detail::identity<int>, Compare = std::less<int>, Alloc = std::allocator<int>]â ../../../../boost/shmem/containers/flat_set.hpp:164: instantiated from âvoid boost::shmem::flat_set<T, Pred, Alloc>::swap(boost::shmem::flat_set<T, Pred, Alloc>&) [with T = int, Pred = std::less<int>, Alloc = std::allocator<int>]â ../../test/flat_tree_test.cpp:34: instantiated from here ../../../../boost/shmem/detail/utilities.hpp:45: error: call of overloaded âswap (boost::shmem::detail::flat_tree<int, int, boost::shmem::detail::identity<int>, std::less<int>, std::allocator<int> >::value_compare&, boost::shmem::detail::flat_tree<int, int, boost::shmem::detail::identity<int>, std::less<int>, std::allocator<int> >::value_compare&)â is ambiguous /usr/lib/gcc/i386-redhat- linux/4.1.0/../../../../include/c++/4.1.0/bits/stl_algo base.h:92: note: candidates are: void std::swap(_Tp&, _Tp&) [with _Tp = boost::shmem::detail::flat_tree<int, int, boost::shmem::detail::identity<int>, std::less<int>, std::allocator<int> >::value_compare] ../../../../boost/shmem/detail/utilities.hpp:42: note: void boost::shmem::detail::swap (T&, T&) [with T = boost::shmem::detail::flat_tree<int, int, boost::shmem::detail::identity<int>, std::less<int>, std::allocator<int> >::value_compare] ../../../../boost/shmem/detail/utilities.hpp: In function âvoid boost::shmem::detail::swap(T&, T&) [with T = boost::shmem::detail::flat_tree<int, std::pair<int, int>, boost::shmem::detail::select1st<std::pair<int, int> >, std::less<int>, std::allocator<std::pair<int, int> > >::value_compare]â: ../../../../boost/shmem/containers/flat_tree.hpp:228: instantiated from âvoid boost::shmem::detail::flat_tree<Key, Value, KeyOfValue, Compare, Alloc>::swap (boost::shmem::detail::flat_tree<Key, Value, KeyOfValue, Compare, Alloc>&) [with Key = int, Value = std::pair<int, int>, KeyOfValue = boost::shmem::detail::select1st<std::pair<int, int> >, Compare = std::less<int>, Alloc = std::allocator<std::pair<int, int> >]â ../../../../boost/shmem/containers/flat_map.hpp:180: instantiated from âvoid boost::shmem::flat_map<Key, T, Pred, Alloc>::swap(boost::shmem::flat_map<Key, T, Pred, Alloc>&) [with Key = int, T = int, Pred = std::less<int>, Alloc = std::allocator<std::pair<int, int> >]â ../../test/flat_tree_test.cpp:36: instantiated from here ../../../../boost/shmem/detail/utilities.hpp:45: error: call of overloaded âswap (boost::shmem::detail::flat_tree<int, std::pair<int, int>, boost::shmem::detail::select1st<std::pair<int, int> >, std::less<int>, std::allocator<std::pair<int, int> > >::value_compare&, boost::shmem::detail::flat_tree<int, std::pair<int, int>, boost::shmem::detail::select1st<std::pair<int, int> >, std::less<int>, std::allocator<std::pair<int, int> > >::value_compare&)â is ambiguous /usr/lib/gcc/i386-redhat- linux/4.1.0/../../../../include/c++/4.1.0/bits/stl_algo base.h:92: note: candidates are: void std::swap(_Tp&, _Tp&) [with _Tp = boost::shmem::detail::flat_tree<int, std::pair<int, int>, boost::shmem::detail::select1st<std::pair<int, int> >, std::less<int>, std::allocator<std::pair<int, int> > >::value_compare] ../../../../boost/shmem/detail/utilities.hpp:42: note: void boost::shmem::detail::swap (T&, T&) [with T = boost::shmem::detail::flat_tree<int, std::pair<int, int>, boost::shmem::detail::select1st<std::pair<int, int> >, std::less<int>, std::allocator<std::pair<int, int> > >::value_compare] make: *** [../../bin/linux/test_flat_tree_test.out] Error 1
Note:
See TracTickets
for help on using tickets.