Re: [C++-sig] [boost.python] How can I wrap operator==?

2010-01-12 Thread blp330
Um... Sorry, I mean I have a class Document, which defined class Document { public: bool operator==(const Document& other) const { return Compare(other); } }; It simply call Compare method, I need to something more when I use it in python code but I don't want to change my Document c

[C++-sig] [boost.python] How can I wrap operator==?

2010-01-10 Thread blp330
Hi, I want to wrap operator== for my object, Py++ generates that: Document_exposer.def( bp::self != bp::self); Document_exposer.def( bp::self == bp::self ); But I want to do something more, so I try to wrap it with: Document_exposer.def( bp::self != bp::sel

Re: [C++-sig] [boost.python] How can I link against certain python version?

2010-01-07 Thread blp330
Thank you. But my operating system is Windows. :p I am sorry I didn't describe my problem clearly. I am using boostpro's compiled binary. I defined BOOST_PYTHON_STATIC_LIB. Visual Studio will try to link python25.lib automatically in 1.36. Now, I don't know how to make it still link against pyt

[C++-sig] [boost.python] How can I link against certain python version?

2010-01-04 Thread blp330
Hi, I try to upgrade my boost from 1.36 to 1.41, but it will link against python26.lib. My own python version is 2.5, How can I tell boost to link with python25.lib? Thanks. -- View this message in context: http://old.nabble.com/-boost.python--How-can-I-link-against-certain-python-version--t