Re: [C++-sig] Boost python simple interfacing

2013-09-27 Thread Cedric GESTES
On Wed, Sep 25, 2013 at 10:06 PM, Kassiopi Kassiopi2 wrote: > Hi, > > I apologize for the delayed reply. > > I was hoping to avoid linking the commandManager into the .so file. I am > trying to avoid that because then, I will have to do this for any other > module that I create and uses the comman

Re: [C++-sig] Boost python simple interfacing

2013-09-27 Thread Giuseppe Corbelli
On 25/09/2013 22:06, Kassiopi Kassiopi2 wrote: Hi, I apologize for the delayed reply. I was hoping to avoid linking the commandManager into the .so file. I am trying to avoid that because then, I will have to do this for any other module that I create and uses the commandManager. I would prefer

Re: [C++-sig] Boost python simple interfacing

2013-09-26 Thread Kassiopi Kassiopi2
Hi, I apologize for the delayed reply. I was hoping to avoid linking the commandManager into the .so file. I am trying to avoid that because then, I will have to do this for any other module that I create and uses the commandManager. I would prefer to declare it as extern or something similar if

Re: [C++-sig] Boost python simple interfacing

2013-09-24 Thread Raghvendra Jain
Well, I have embedded an interpreter inside C++ code, if your question is related to that, please write back. May be I can help you with that. cheers, Raghav On Tue, Sep 24, 2013 at 4:33 PM, Giuseppe Corbelli < giuseppe.corbe...@copanitalia.com> wrote: > On 21/09/2013 16:52, Kassiopi Kassiopi2

Re: [C++-sig] Boost python simple interfacing

2013-09-24 Thread Dave Wampler
What you're trying to do is fine. You only need to expose the interface that python is accessing. You do need to link in the library that contains the symbols for the commandManager class however. On Sep 22, 2013, at 7:48 PM, Kassiopi Kassiopi2 wrote: Hi, I want to call a c++ function from an

Re: [C++-sig] Boost python simple interfacing

2013-09-24 Thread Giuseppe Corbelli
On 21/09/2013 16:52, Kassiopi Kassiopi2 wrote: Hi, I want to call a c++ function from an embedded python shell, using boost python. All the examples I've seen online describe how to expose a whole class or some functions, but all cases refer to *standalone* parts of code. My case is different th

Re: [C++-sig] Boost python simple interfacing

2013-09-23 Thread Cedric GESTES
On Sep 23, 2013 1:48 AM, "Kassiopi Kassiopi2" wrote: > > Hi, > > I want to call a c++ function from an embedded python shell, using boost python. All the examples I've seen online describe how to expose a whole class or some functions, but all cases refer to standalone parts of code. > My case is

[C++-sig] Boost python simple interfacing

2013-09-22 Thread Kassiopi Kassiopi2
Hi, I want to call a c++ function from an embedded python shell, using boost python. All the examples I've seen online describe how to expose a whole class or some functions, but all cases refer to *standalone* parts of code. My case is different though. The function I want to expose is not standa