Boost logo

Ublas :

Subject: [ublas] Sparse Matrix Serialization
From: Luke Bloy (lbloy_at_[hidden])
Date: 2010-12-23 07:49:44


I'm interested in serializing some boost compressed row matrices. Based
on this mailing list thread from 2008
http://lists.boost.org/MailArchives/ublas/2008/08/2974.php it seemed
that dense matrix support has been implemented so I had hoped that
sparse matrix support was there as well. However when i attempt to
compile the attached code I get a number linking errors of the type

BoostTest3.cxx:(.text+0xf1e): undefined reference to
`boost::serialization::typeid_system::extended_type_info_typeid_0::extended_type_info_typeid_0(char
const*)'
BoostTest3.cxx:(.text+0xf38): undefined reference to
`boost::serialization::typeid_system::extended_type_info_typeid_0::type_register(std::type_info
const&)'
BoostTest3.cxx:(.text+0xf42): undefined reference to
`boost::serialization::extended_type_info::key_register() const'
BoostTest3.cxx:(.text+0x1000): undefined reference to
`boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'

The only boost library i'm attempting to link to is
-lboost_serialization-mt

Am I missing something or has this functionality not been implemented?

If it isn't implemented can someone propose a work around? Could i
serialize the unbounded arrays that make up the core of the sparse
matrix representation on there own?

Thanks
Luke