[serialization] Trivial code fails to compile on gcc-4.3

--- test2.cc #include <boost/serialization/nvp.hpp> #include <boost/serialization/vector.hpp> --- g++ -I /usr/local/src/boost.hg test2.cc In file included from test2.cc:2: /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > >

Forgot to mention, this is boost svn 45019 Neal Becker wrote:
--- test2.cc #include <boost/serialization/nvp.hpp> #include <boost/serialization/vector.hpp> ---
g++ -I /usr/local/src/boost.hg test2.cc In file included from test2.cc:2: /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > >
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On May 2, 2008, at 5:52 AM, Neal Becker wrote:
--- test2.cc #include <boost/serialization/nvp.hpp> #include <boost/serialization/vector.hpp> ---
g++ -I /usr/local/src/boost.hg test2.cc In file included from test2.cc:2: /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: redefinition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > > /usr/local/src/boost.hg/boost/serialization/vector.hpp:185: error: previous definition of struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > >
It seems that BOOST_NO_INTRINSIC_INT64_T is not defined correctly for this compiler Matthias

Am Freitag 02 Mai 2008 16:21:08 schrieb Neal Becker:
Matthias Troyer wrote:
...
It seems that BOOST_NO_INTRINSIC_INT64_T is not defined correctly for this compiler
Do you know where to fix this?
Patch is attached. Robert knows this, since I sent him this patch two weeks ago. Maybe I should have opened a bug report to make the patch public available. -- Maik

Maik Beckmann wrote:
Am Freitag 02 Mai 2008 16:21:08 schrieb Neal Becker:
Matthias Troyer wrote:
...
It seems that BOOST_NO_INTRINSIC_INT64_T is not defined correctly for this compiler
Do you know where to fix this?
Patch is attached.
Robert knows this, since I sent him this patch two weeks ago.
Maybe I should have opened a bug report to make the patch public available.
-- Maik
Also, shouldn't we give an error if ULONG_MAX is undef'd at this point? Would have saved me some time.

Do you know where to fix this?
Patch is attached.
Robert knows this, since I sent him this patch two weeks ago.
Maybe I should have opened a bug report to make the patch public available.
please do so ... there are quite a number of related bug reports on the tracker ... btw, my personal git tree of boost contains a mirrored version of the 1.35 release branch with patches for gcc-4.3 ... http://tim.klingt.org/git?p=boost.git best, tim -- tim@klingt.org http://tim.klingt.org Cheat your landlord if you can and must, but do not try to shortchange the Muse. It cannot be done. You can't fake quality any more than you can fake a good meal. William S. Burroughs
participants (4)
-
Maik Beckmann
-
Matthias Troyer
-
Neal Becker
-
Tim Blechmann