[C++-sig] Nasty Heap Error in MSVC 7.1 With Boost andPythonUsing Derived Classes
mjkeyes at sbcglobal.net
mjkeyes at sbcglobal.net
Tue Oct 18 09:01:59 CEST 2005
Sorry for the spam, but one final note:
I used bjam and still got the linking error. If I add import.cpp to my
project, the linking error goes away. Thoughts? I looked at the build
files and see that exec.cpp and import.cpp have been added, but I'm
still getting this linking error.
<mjkeyes at sbcglobal.net> wrote in message
news:<000001c5d3a2$f7e1f2f0$210110ac at CROW>...
> One more note - I'm using the Visual Studio project included in the
> Boost folders for Python. Import.cpp was not part of this project - I
> added it, but I'm still getting the linking problems.
>
> "David Abrahams" <dave at boost-consulting.com> wrote in message
> news:<ur7aqdcmi.fsf at boost-consulting.com>...
> > "Matt" <mjkeyes at sbcglobal.net> writes:
> >
> > > Hey all,
> > >
> > > i'm trying to create an application that both embeds and extends
> > > python through boost. i've got a rough framework up and running,
> > > but now that i'm finally to the python part i'm having troubles.
> > > Please know that i'm a noob to boost and to boost.python, so if
you
> > > see any obvious noob idiocies in my code please point them out
> > > (we've all got to start learning somewhere :)).
> >
> > You should never be doing any Py_XINCREF or Py_XDECREF stuff when
> > using Boost.Python. Also, you're using an outdated approach to
> > supporting virtual functions.
> >
> > I suggest you follow the example of
> > http://www.boost-consulting.com/boost/libs/python/test/exec.cpp
> >
> > You'll need the latest Boost CVS state in order to use all the
> > idioms
> > therein, though.
> >
> > --
> > Dave Abrahams
> > Boost Consulting
> > www.boost-consulting.com
More information about the Cplusplus-sig
mailing list