Boost logo

Boost :

Subject: Re: [boost] Serialization Link Error
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-16 09:51:29


AMDG

Venkata (Ravi) Adusumilli wrote:
> I recieve the following link error:
> *undefined reference to `void
> CommandRequest::serialize<boost::archive::xml_iarchive>(boost::archive::xml_iarchive&,
> unsigned int)'*
>

You're already explicitly instantiating serialize for test_iarchive.
Just do the same for
xml_iarchive

> template<class A>
> void CommandRequest::serialize(A & archive, const unsigned int /* version
> */)
> {
> archive & requestIDM;
> archive & commandTypeM;
> }
> template void
> CommandRequest::serialize<boost::archive::text_oarchive>(boost::archive::text_oarchive&
> archive, const unsigned int version);
> template void
> CommandRequest::serialize<boost::archive::text_iarchive>(boost::archive::text_iarchive&
> archive, const unsigned int version);
>

In Christ,
Steven Watanabe


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