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

2016-09-08 Thread Jon Lederman
Hi, And here is yet another person who seems to encounter the same issue: http://stackoverflow.com/questions/9140572/c-boost-python-2-problems -Jon > On Sep 8, 2016, at 6:00 PM, Stefan Seefeld wrote: > > Hi Jon, > > please remove the dependency on the "opus/*" headers, so we can compile > t

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

2016-09-08 Thread Jon Lederman
For example in this example, does the name of my shared object file (.so) need to be zoo.so in order to see the attribute Animal? I am very confused about all of this. /* * This inclusion should be put at the beginning. It will include . */ #include #include #include #include #include #

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

2016-09-08 Thread Jon Lederman
Hi, I think this text on this page: https://www.preney.ca/paul/archives/107 relates to the issue I’m having: It is very important that "libyay" in BOOST_PYTHON_MODULE(libyay) matches the name of the library you're generating in CMakeLists.txt (without the extension). NOTE: On Linux / Unix s

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

2016-09-08 Thread Jon Lederman
Hi, Ok. I have removed all the opus library dependencies and stripped away much of everything else. It seems to me that the name of the generated .so has to match the name of the module. Perhaps I am building incorrectly. I am using make. -Jon #ifndef OPUS_ENCODER_STRATEGY_H_ #define OP

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

2016-09-08 Thread Stefan Seefeld
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, Stefan On 08.09.2016 17:30, Jon Lederman wrote: > Hi, > > Thanks for responding. H

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

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

2016-09-08 Thread Stefan Seefeld
Hi Jon, what you are describing makes perfect sense, and should work without problem. From your description it isn't clear why this isn't working, so I suggest you put together a self-contained test that doesn't work as you expect, and send that out so we can have a look. Otherwise we'd have to gu

[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