[C++-sig] Problems with embedding.cpp with VC7

Andrew L Ellem alellem at student.cs.uwaterloo.ca
Tue Sep 23 23:06:39 CEST 2003


I've been trying the get embedding.cpp example to work.
I have the latest CVS version of boost::python, and I am using
VC7 (not the 2003 edition) with Python 2.3.

It complies fine except with a few warnings:
C:\boost\boost\python\converter\builtin_converters.hpp(114) : warning
C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of
data

But throws an exception when calling the py.hello():

    python::object py_base = PythonDerived();
    Base& py = python::extract<Base&>(py_base)();
    std::cout << py.hello() << std::endl;

Does anyone know what the problem is? or any possible fix?

Thanks,
Andrew Ellem





More information about the Cplusplus-sig mailing list