[python-win32] MSVC ++ and Boost libraries
Tony May
tmay at infoinplace.net
Mon Jul 7 17:10:33 CEST 2008
Is it possible to use the pre-built binaries with MSVC++ 2005 express
edition?
I get the following error from bjam when attempting to build the pyd from
the
source file hello.cpp.
-----------------------------------------------------
hello.cpp has the following code trying to
wrap a class
BOOST_PYTHON_MODULE(hello_ext)
{
class_<GreetBase>("GreetBase") # line 50
.def("greet", &GreetBase::greet)
;
}
--------------------------------------------
hello.cpp(50) : error C2976: 'boost::python::class_' : too few template
arguments
C:\Program Files\boost\boost_1_35_0\boost/python/def_visitor.hpp(14) :
see declaration of 'boost::python::class_'
hello.cpp(50) : error C2440: '<function-style-cast>' :
cannot convert from 'const char [10]' to 'boost::python::class_'
Source or target has incomplete type
hello.cpp(50) : error C2228: left of '.def' must have class/struct/union
------------------------------------------------
Do I need to rebuild the boost libraries? Would this be expected to fix the
problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080707/3e512587/attachment.htm>
More information about the python-win32
mailing list