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

David Abrahams dave at boost-consulting.com
Wed Sep 24 01:36:20 CEST 2003

Andrew L Ellem <alellem at student.cs.uwaterloo.ca> writes:

> 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?

Run the tests this way:

  cd c:/boost/libs/python/test/
  bjam -sTOOLS=vc7 embedding
  ...found 2074 targets...
  ...updating 1 target...
  **passed** c:\build\bin\boost\libs\python\test\embedding.test\vc7\debug\embedding.test
  ...updated 1 target...

Works perfectly well for me.
Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list