[C++-sig] MS Visual C++ integrated environment
Nicolas Lelong
nico_ml at mgdesign.org
Fri Feb 14 18:21:17 CET 2003
Hi,
no time to check here, but here is my first thought :
> #include <boost/python.hpp>
> using namespace boost::python;
> enum choice { red,green,blue};
> BOOST_PYTHON_MODULE(_PyTest)
I believe this should be 'BOOST_PYTHON_MODULE(PyTest)' [ no '_' ] if
python really looks after 'initPyTest'.
> {
> enum_<choice>("choice")
...
Otherwise, you should verify the symbols exported from your DLL (or
.pyd) and check that there are some symbols exported.
Anyway, it works fine with VC :)
Hope this helps,
Nicolas
More information about the Cplusplus-sig
mailing list