0
votes
0answers
16 views

Error while running bjam in Boost Python

I have installed boostpro (boost 1.47) in my system. (Windows 7 32-bit) when I run bjam command on "C:\Program Files\boost\boost_1_47\libs\python\example" I get the following error C:\Program ...
0
votes
1answer
23 views

Error in building boost:python code

I've the following boost:python code(gona.cpp). #include <iostream> using namespace std; void say_hello(const char* name) { cout << "Hello " << name << "!\n"; } ...
0
votes
1answer
33 views

How to expose std::pair to python using boost::python?

How to expose std::pair to python using boost::python? When I expose for example vector<string> I simply write: class_<std::vector<std::string> >("StringVec") ...
1
vote
1answer
67 views

Getting argument list in a Boost:Python function

In CPython we can get the argument list of a function by following methods. function name is 'aMethod' import inspect inspect.getargspec(aMethod) or aMethod.func_code.co_varnames How can I ...
0
votes
0answers
39 views

Is there an equivalent to Boost::Python for Node.js to develop modules? [closed]

Some of you are aware of how easy it is to do a python wrapper of C++ code with Boost::Python with all the templates. I was wondering if there was a similar API that exists for Node.js.
1
vote
1answer
46 views

Having troubles with mixing library types (static vs. dynamic)

After battling my makefile woes I'm now onto problems with how the two libraries are supposed to interact. So, this is on Linux (CentOS 6.2 - 6.4, not that that seems to make much difference in terms ...
1
vote
0answers
32 views

How to expose raw byte buffers with Boost::Python?

I've got third party C++ library in which some class methods use raw byte buffers. I'm not quite sure how to deal in Boost::Python with it. C++ library header is something like: class CSomeClass { ...
0
votes
0answers
48 views

Linker error when building Boost.Python from source

Since I need the Boost.Python library linked with Python 3.3., I am trying to build it from source as described here, using the bjam command. The following error stops me: cls ...
1
vote
1answer
127 views

Boost.Python custom converter

I have a class taking a vector as parameter (a binary file content). I would like to convert python 'str' type into vector of unsigned char but only for one of my class method. ...
6
votes
5answers
372 views

Need help getting started with Boost.Python

I'm trying to build my first Boost.Python example. #include <iostream> #include <boost/python.hpp> using namespace boost::python; class Hello { public: std::string greet() { ...
1
vote
1answer
169 views

Boost Python Hello World example not working in Python, AGAIN

I have the same problem than the guy here Boost Python Hello World example not working in Python who solved his problem, without indicating how. The posts there being quite old, after having posted ...
0
votes
1answer
47 views

strange timing of the python extension execusion or building boost.python with --threading=single

I got very strange behavior of my python extension built with the boost.python library. Namely, in the piece of code: import my_ext j = 0 while j<5: print j my_ext.do_something(j) j = ...
1
vote
0answers
145 views

Error compiling Boost.Python quickstart

I've been trying to compile the Boost.Python 'quickstart' ($BOOST_PATH\libs\python\examples\quickstart) examples and have run into an issue. First, my environment: OS: Windows 7 Ultimate 64 bit ...
0
votes
0answers
64 views

Shared pointer to a vector..in boost::python?

I'm trying to expose a class with a method that takes a boost::shared_ptr< std::vector < MyClass > > using boost::python, and I'm not entirely sure how to do so... The ideal interface ...
0
votes
1answer
93 views

How does boost::python work?Any ideas about the realisation details?

I'm a newbie to boost and one of its libraries which I can't understand it is Boost.Python. Can anyone explain me in details how does this interoperability achieved?In the documentation there only a ...

1 2 3 4 5 11
15 30 50 per page