Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-11 06:06:32


Hello,
I've have a header file like this:

   namespace lvk { namespace nm_model { namespace runtime {
         class IntTraceItem {};
   }}}

  BOOST_CLASS_EXPORT(lvk::nm_model::runtime::IntTraceItem);

The header is included in two files. It used to work before, but I've just
updated to CVS state of the serialization lib, and get:

src/runtime/bin/gcc/debug/threading-multi/TraceArbiter.o(.bss+0x0):src/runtime/TraceArbiter.cpp:16:
multiple definition of
`boost::archive::detail::guid_initializer<lvk::nm_model::runtime::IntTraceItem>::instance'
src/runtime/bin/gcc/debug/threading-multi/Trace.o(.bss+0x0):src/runtime/Trace.cpp:21:
first defined here

I attach the testcase. When I run

   g++ -I ~/Work/boost-rc s1.cpp s2.cpp

the first error is about duplicate symbols.

Am I doing something wrong or is this a regression?

- Volodya




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk