Ahh, the usual issue with boost pointer now wanting the full definition. Here is a patch:
Also, this patch modifies the scons check for boost so it prints out the patch if it adds something to the search path when looking for boost.
On May 24, 2008, at 10:50 AM, Ben Webb wrote:
> Daniel Russel wrote: >> The attached patch adds the ability to remove particle attributes. > > This patch fails with Boost 1.35: > scons: Building targets ... > g++ -o kernel/src/Model.os -c -Wall -g -fvisibility=hidden -fPIC - > DIMP_EXPORTS -DGCC_VISIBILITY -Ikernel/include -I/opt/local/include > kernel/src/Model.cpp > /opt/local/include/boost/type_traits/is_base_and_derived.hpp: In > instantiation of > 'boost > ::detail::is_base_and_derived_impl2<IMP::internal::RefCountedObject, > IMP::Particle>': > /opt/local/include/boost/type_traits/is_base_and_derived.hpp:215: > instantiated from > 'boost > ::detail::is_base_and_derived_impl<IMP::internal::RefCountedObject, > IMP::Particle>' > /opt/local/include/boost/type_traits/is_base_of.hpp:21: > instantiated from > 'boost::is_base_of<IMP::internal::RefCountedObject, IMP::Particle>' > kernel/include/IMP/internal/ObjectPointer.h:39: instantiated from > 'IMP::internal::ObjectPointer<IMP::Particle, true>' > kernel/include/IMP/internal/AttributeTable.h:92: instantiated from > here > /opt/local/include/boost/type_traits/is_base_and_derived.hpp:141: > error: invalid application of 'sizeof' to incomplete type > 'IMP::Particle' > /opt/local/include/boost/type_traits/is_base_and_derived.hpp:141: > error: invalid application of 'sizeof' to incomplete type > 'boost::STATIC_ASSERTION_FAILURE<false>' > scons: *** [kernel/src/Model.os] Error 1 > > Ben > -- > ben@salilab.org http://salilab.org/~ben/ > "It is a capital mistake to theorize before one has data." > - Sir Arthur Conan Doyle