Boost logo

Boost Users :

Subject: Re: [Boost-users] /usr/include/boost/serialization/vector.hpp:126: error:
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-02 16:54:04


AMDG

Patrick McEvoy wrote:
> I am using Fedora 10 on a x86_64 maching with boost-1.34.1-17. I am
> getting the following errors when I try to compile QuantlabAddin-0.9.7.
>
> In file included from serialization_abcd.cpp:31:
> /usr/include/boost/serialization/vector.hpp: At global scope:
> /usr/include/boost/serialization/vector.hpp:126: error: redefinition
> of 'struct boost::serialization::implementation_level<std::vector<long
> int, std::allocator<long int> > >'
> /usr/include/boost/serialization/vector.hpp:126: error: previous
> definition of 'struct
> boost::serialization::implementation_level<std::vector<long int,
> std::allocator<long int> > >'
> /usr/include/boost/serialization/vector.hpp:126: error: redefinition
> of 'struct boost::serialization::implementation_level<std::vector<long
> unsigned int, std::allocator<long unsigned int> > >'
> /usr/include/boost/serialization/vector.hpp:126: error: previous
> definition of 'struct
> boost::serialization::implementation_level<std::vector<long unsigned
> int, std::allocator<long unsigned int> > >'
> make[1]: *** [serialization_abcd.lo] Error 1
> make[1]: Leaving directory
> `/mnt/nfs/192.168.1.2/home/pmcevoy/Download/Quantlib/QuantLibAddin-0.9.7/qlo/serialization/register'
>
> make: *** [install-recursive] Error 1
>
> Has anyone else run into this problem? If so do you have a fix?

This looks like a bug in the preprocessor conditional code in
boost/serialization/collection_traits.hpp.

Does the error go away if you make sure that the
#define BOOST_NO_INTRINSIC_INT64_T
on line 55 is activated?

In Christ,
Steven Watanabe


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