|
Boost Users : |
From: Jedediah Smith (jedediah_at_[hidden])
Date: 2004-07-15 21:21:07
scbarg.obj : error LNK2005: "struct
unbounded_type::boost::detail::unbounded_type &
boost::indexed_sets::`anonymous namespace'::unbounded"
(?unbounded@?A0x65131fae_at_indexed_sets_at_boost@@3AAUunbounded_type_at_detail@23_at_A)
already defined in scbarcf.obj
scbarg.obj : error LNK2005: "struct
unbounded_type::boost::detail::unbounded_type
boost::indexed_sets::`anonymous namespace'::unbounded_obj"
(?unbounded_obj@?A0x65131fae_at_indexed_sets_at_boost@@3Uunbounded_type_at_detail@23_at_A)
already defined in scbarcf.obj
Compiler is VC7.1
The two modules in the error messages don't use indexed_set at all but
indexed_set.hpp is included globally. It seems as if indexed_set.hpp has a
definition hiding in it somewhere. Here are the two declarations that
appear in my project (they are in different namespaces so m_events_t does
not collide):
typedef is::indexed_set<
event_t,
is::index_list<
is::unique <is::member<event_t,eventid_t,&event_t::id> >,
is::non_unique <is::member<event_t,double, &event_t::time> >,
is::non_unique
<is::member<event_t,hoption<notepos_t>,&event_t::notepos>, notepos_compare>
>
> m_events_t;
typedef is::indexed_set<
event_t,
is::index_list<
is::unique<is::member<event_t,eventid_t,&event_t::id> >,
is::non_unique<is::member<event_t,double,&event_t::time> >,
is::non_unique<is::member<event_t,Score::beatref_t,&event_t::beat> >
>
> m_events_t;
-- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net