|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-02 07:53:19
Sebastien Gerega wrote:
> Ok thanks that helped.
> Now I got another problem. I can't put the
>
> std::ostream&
> *operator*<<(std::ostream& os, const ResData& rD){
> *return* os << rD.getResName() << rD.getSeqNum() << rD.getInsNum() <<
> rD.getSAS();
> }
>
> in ResData.h because that results in multiple definition errors.
It should be inline.
> But
> when I put it in ResData.cpp I get the following error:
> /usr/include/boost/serialization/access.hpp:109: undefined reference to
> `void
>
ResData::serialize<boost::archive::text_oarchive>(boost::archive::text_oarchive&,
> unsi
The code you previously posted did not contain definition of
ResData::serialize, only declaration. You need to define it, in the header
file.
- Volodya
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