It is in the core namespace. So on the C++ side you need "public IMP::core::SingletonModifier". The python side doesn't work yet. I asked Ben if he knows how to fix it, but haven't gotten a response.
On Nov 29, 2008, at 4:31 PM, Keren Lasker wrote:
> hi, > Trying to implement misc.TransformationModifier that inherits from > core.SingletonModifier > > #include "misc_exports.h" > #include "internal/misc_version_info.h" > ... > #include "IMP/core/SingletonModifier.h" > > > IMPMISC_BEGIN_NAMESPACE > > class IMPMISCEXPORT TransformationModifier : public SingletonModifier > > The compiler can not recognize SingletonModifier, specifically I get: > g++ -pthread -o modules/misc/pyext/misc_wrap.os -c -g -fPIC -fno- > strict-aliasing -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -- > param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC - > Ibuild/include -I/usr/include/python2.5 modules/misc/pyext/ > misc_wrap.cc > In file included from build/include/IMP/misc.h:22, > from modules/misc/pyext/misc_wrap.cc:3236: > > > should I change something in the SConsript file of mics/include? > > thank you, > Keren. > _______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev