[C++-sig] Re: What CVS version for V2?
David Abrahams
david.abrahams at rcn.com
Tue Jun 4 20:14:53 CEST 2002
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