Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-09 Thread Jon Lederman
Hi, Let me be more explicit: If my BOOST thing is: BOOST_PYTHON_MODULE(opus_encoder_strategy) and my Makefile is like this: all: opus_encoder_strategy.so opus_encoder_strategy.so: opus_encoder_strategy.o ${CC} ${CInc} ${CLinkFlags} $^ -o $@ opus_encoder_strategy.o: opus_encoder_str

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-09 Thread Jon Lederman
Hi, Thanks for the response. However, this example doesn’t work for me either if I set the shared object file to zoo.so. It doesn’t find the animal attribute: http://pyengr.readthedocs.io/en/latest/inter/bpy Can you explain why? Thanks. Jon > On Sep 9, 2016, at 4:07 AM, Holger Joukl wrot

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
eaders, so we can compile > the module ourselves and try to reproduce what you are reporting. > (That's what I meant with "self-contained test".) > > > Thanks, >Stefan > > On 08.09.2016 17:30, Jon Lederman wrote: >> Hi, >> >> Th

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
we can compile > the module ourselves and try to reproduce what you are reporting. > (That's what I meant with "self-contained test".) > > > Thanks, >Stefan > > On 08.09.2016 17:30, Jon Lederman wrote: >> Hi, >> >> Thanks for respond

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
e "yay". This will allow you to call the "yay" function from Python later. > On Sep 8, 2016, at 6:33 PM, Jon Lederman wrote: > > Hi, > > Ok. I have removed all the opus library dependencies and stripped away much > of everything else. It seems to me that

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
eld wrote: > > Hi Jon, > > please remove the dependency on the "opus/*" headers, so we can compile > the module ourselves and try to reproduce what you are reporting. > (That's what I meant with "self-contained test".) > > > Thanks, >

Re: [C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
Hi, Thanks for responding. Here is my header file. I am compiling this to a shared object called opus_strategy.so. If I set the argument of BOOST_PYTHON_MODULE to opus_encoder_strategy, and compile my .so file to have the name opus_encoder_strategy.so,I can load the boost python module into

[C++-sig] Boost Python Question - Multiple Classes and Modules not appearing as attribute

2016-09-08 Thread Jon Lederman
Hi, I am trying to use Boost Python with a set of classes I am compiling into a library. Call them class A, class B and class C. If I just have class A and I use: BOOST_PYTHON_MODULE(A) and my Makefile builds an executable called A.so I am able to see the classes embedded in the module. Ho

[C++-sig] Linking Boost-Python to Python Library in OS X and Anaconda Python 3.5

2016-05-26 Thread Jon Lederman
Hi, I am having some issues using boost-python on OS X using Anaconda Python 3.5. I am able to build a simple c++ function using boost-python and call it from Python. However, when I create a simple class and call the constructor, I am met with: In [2]: hello_ext.World()