|
Boost Users : |
Subject: Re: [Boost-users] [mpi] many undefined references toserialize<boost::mpi::detail::mpi_datatype_oarchive>
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-09-11 01:18:27
Brian Budge wrote:
> Hi all -
>
> I've got a class hierarchy that can already be serialized into text or
> binary archives. I'm explicitly instantiating the template functions
> for serialize and/or load/save.
>
> I'm trying to add the capability to have boost mpi perform the
> serialization through send/recv/broadcast. I've added explicit
> instantiations for the boost::mpi::packed_iarchive and
> packed_oarchive. My code compiles, but at the end I get a bunch of
> undefined references for
> serialize<boost::mpi::detail::mpi_datatype_oarchive>.
>
> I can add the explicit instantiations for this oarchive, and this
> seems to fix my linking issue, but this seems broken, i.e. I should
> not have to deal with anything in a boost::detail namespace?
I agree.
Note that the main boost archive classses - text_oarchive etc. do
have *.cpp files with expicit explicit instantiations. Maybe these
are missing from the mpi archives. Feel free to investigate
and suggest a patch.
Robert Ramey
>
> Is there another suggestion for how to get this to work?
>
> Thanks,
> Brian
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