Boost logo

Boost Users :

Subject: Re: [Boost-users] strange serialization compilation issue - serialize function not being compiled
From: G, Benjamin (NSN - IN/Bangalore) (benjamin.g_at_[hidden])
Date: 2009-07-23 03:54:53


I forgot to mention, I am using boost 1.33.1 and compiling on windriver
(x86) linux.

 

________________________________

From: G, Benjamin (NSN - IN/Bangalore)
Sent: 23 July, 2009 1:24 PM
To: 'boost-users_at_[hidden]'
Subject: strange serialization compilation issue - serialize function
not being compiled

 

Hi,

 

I have a class which has got the serialize function implemented.

 

template<class Archive>void myClassB::serialize( Archive& ar,

                                                               const
unsigned int)

 

Somehow, this function is skipped and doesn't appear even in the object
file created for this file which gives me undefined reference errors
later when linking.

I have included :

#include <boost/archive/text_iarchive.hpp>

#include <boost/archive/text_oarchive.hpp>

#include <boost/archive/binary_oarchive.hpp>

#include <boost/archive/binary_iarchive.hpp>

 

In my cpp file.

 

Does this sound faimiliar to anyone? Or am I going wrong somewhere?

 

Thanks in advance

- Benjamin Jacob.

 



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