Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] compile error on Mac OSX Tiger
From: Philipp Münzel (mailing-lists_at_[hidden])
Date: 2010-10-27 19:16:54


Robert Ramey <ramey <at> rrsd.com> writes:
>
>
> try adding:
>
> #include <boost/serialization/tracking.hpp>
>
> to ./boost/archive/basic_binary_iarchive.hpp:
>
> Robert Ramey
>
>

I changed the beginning of boost/archive/basic_binary_iarchive.hpp
to read as follows:

#ifndef BOOST_ARCHIVE_BASIC_BINARY_IARCHIVE_HPP
#define BOOST_ARCHIVE_BASIC_BINARY_IARCHIVE_HPP

// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////
// ... collapsed...
// See http://www.boost.org for updates, documentation, and revision history.

#include <boost/serialization/tracking.hpp>
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/serialization/pfto.hpp>

unfortunately, I keep getting the same error as before:

darwin.compile.c++ bin.v2/libs/serialization/build/darwin-4.0.1/release/link-
static/threading-multi/binary_iarchive.o
./boost/archive/basic_binary_iarchive.hpp:75: error: invalid application of
'sizeof' to incomplete type 'boost::STATIC_ASSERTION_FAILURE<false>'

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-no-cpp-precomp -gdwarf-2 -Wno-long-double -DBOOST_ALL_NO_LIB=1 -DNDEBUG
-I"." -c -o "bin.v2/libs/serialization/build/darwin-4.0.1/release/link-static
/threading-multi/binary_iarchive.o" "libs/serialization/src/binary_iarchive.cpp"

...failed darwin.compile.c++ bin.v2/libs/serialization/build/darwin-
4.0.1/release/link-static/threading-multi/binary_iarchive.o...
...failed updating 1 target...
...updated 6 targets...

Any other thoughts?

Philipp


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