Library for intuitive and tight integration between c++ and python.
0
votes
0answers
27 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
2answers
45 views
Boost Python callback returning auto_ptr deletes the object
I'm creating bindings for a 3rd party library that takes ownership of objects so I'm trying to use auto_ptr as documented in the FAQ.
Here's an example of two classes I've wrapped:
typedef ...
1
vote
1answer
42 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
29 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
1answer
37 views
How do I return a reference to a dynamic type from C++ and hold it in Python?
I'm writing some code that returns a column value from a row based on the column index. The row is updated from time to time in C++, and I'd like the python code to keep a reference to the column ...
0
votes
0answers
24 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
0answers
66 views
Optimising boost::python::object instances
I recently started using Boost's Python library to wrap parts of a rather large C++ library.
Quite by chance, I discovered that every Python object created by Boost Python, is at least bigger than ...
1
vote
1answer
98 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.
...
0
votes
1answer
30 views
RandomForest.Writehdf5 gives boost.python argument mismatch errror
I am new to python programming. When function Vigra.learning.RandomForest.Writehdf5 is called in the python code, it gives a error as below:
self.RF.writeHDF5(fileName, pathInFile, overwriteFlag)
...
2
votes
1answer
118 views
Creating a const char* const* array
I wish to call a 3rd party library function, which accepts a const char* const* as argument type:-
class Arguments
{
public:
Arguments(int argc, const char* const* p_argv = 0);
private:
...
0
votes
0answers
15 views
Coercion from boost::python::object to C++ type
Is there a standard way to coerce a boost::python::object to a C++ datatype? I'm looking for something that behaves similarly to the old version of boost::python::extract. For example, when I want a ...
-1
votes
0answers
34 views
Boost.Python Windows 7 x64
I have been trying to build the Boost.Python Hello World application and am getting the following errors with various compilers:
GCC 4.6.2:
http://pastebin.com/RzcgNUYL
Clang 3.2:
...
6
votes
5answers
335 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
86 views
Feeding a Python list into a function taking in a vector with Boost Python
I've got a function with the signature:
function(std::vector<double> vector);
And I've exposed it, but it doesn't take in Python lists. I've looked through the other SO answers, and most ...
1
vote
1answer
79 views
boost::python - call a c++ function that takes pointer to an array
I'm a newbie to c++ and boost::python so apologies in advance.
I want to call a c++ function that takes a pointer to an array on a python list using boost::python. I have a solution like this:
//a ...