[C++-sig] Re: Extracting C++ object from Python problem

David Abrahams dave at boost-consulting.com
Tue Jul 20 19:16:26 CEST 2004


James Mastro <jmastro at rochester.rr.com> writes:

> At 06:12 AM 7/20/2004, David Abrahams wrote:
>>Just for future reference, when I asked for a minimal but complete
>>reproducible example, what I was looking for was a single
>>compilable-and-linkable C++ file,
>
> Sorry. I didn't know you could define the module right there in the
> app source like you did. After I did that, and added
> initPointModule(), it worked fine for me, too. I wondered how you
> expected me to get it in one C++ source and one Python script..now I
> know.
>
> I still couldn't get it working with an extension module I built
> seperately. But having it working at all was encouraging. I decided to
> start over from scratch for the fifth time, this time making doubly
> sure I did everything the tutorial said on embedding
> correctly. Eventually I ended up getting it working! I think my
> problem was either I had libs in the wrong place or the wrong ones or
> something. Actually, I know that's the case because I didn't change a
> thing in the code. After that I went back and made the same changes to
> the problematic project's linker options and fixing lib locations and
> that's working too. So I think I've got it, though it's obvious I need
> to do a good bit of Boost.Python learning still.
>
> As always, thanks for everything and especially for your patience.

Sure thing.  Please carry on these discussion on the c++-sig, though,
so that everyone else can benefit, too.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list