[C++-sig] Re: Re: What CVS version for V2?

Dave Hawkes daveh at cadlink.com
Tue Jun 4 20:46:25 CEST 2002


OK, I found it - I didn't realise I needed to define BOOST_PYTHON_V2 -;)


Dave Hawkes


"Dave Hawkes" <daveh at cadlink.com> wrote in message
news:adj1a0$129$1 at main.gmane.org...
> Sorry my mistake, but the same error occurs even without this error. I
tried
> just including module.hpp without any code and still get the same error.
>
> Dave Hawkes
>
>
> "David Abrahams" <david.abrahams at rcn.com> wrote in message
> news:13f801c20bf4$267dce60$6601a8c0 at boostconsulting.com...
> >
> > From: "Dave Hawkes" <daveh at cadlink.com>
> >
> >
> > > OK, I checked out the mpl-development branch and tried a simple test
> file
> > > (VC6 SP5):
> > >
> > >
> > > #include <boost/python/module.hpp>
> > >
> > >
> > > int Test()
> > > {
> > >   return 5;
> > > }
> > >
> > > BOOST_PYTHON_MODULE_INIT(PyTest)
> > > {
> > >   module("PyTest").def("Test");
> > > }
> > >
> > > and get the following errors:
> > >
> > > boost\python\converter\from_python.hpp(24) : error C2904:
'from_python'
> :
> > > template-name already defined as 'volatile  __thiscall
> > > boost::python::from_python'
> > > boost\boost\mpl\aux_\count_if_not.hpp(61) : fatal error C1506:
> > unrecoverable
> > > block scoping error
> > >
> > >
> > > Any ideas?
> >
> > Try passing &Test as the second argument to def(), as required by the
> > interface...
> >
> > -Dave









More information about the Cplusplus-sig mailing list