python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
SWIG: C++ to python: how to wrap a function that passes a reference to a struct
How should I wrap (via SWIG) C++ functions that pass a pointer or a reference to a structure, to make them work in python? Here's an example:
typedef struct
{
double dTrCoef[16][3];
int iNum...
YehudaS
Votes: 0
Answers: 0
swig-3.0.12 generates python2 style import statements
I am converting a large swig based codebase to python3. My current problem is that in-sub directories swig generates import statements as: 'import xxx' vs 'import dir_name.xxx'. The former causes impo...
uuu777
Votes: 0
Answers: 1
How to expose variable sized arrays inside C struct in swig?
I'm struggling for a few days now to find a solution to wrap a C struct containing multiple variable-sized int arrays (stored as pointers) in swig.
Suppose the following minimal example:
typedef struc...
RaumZeit
Votes: 0
Answers: 0
vector of enum not correctly handled by SWIG
Dears,
I use SWIG to generate Python bindings to a C++ API (and it works great!) but I have serious difficulty wrapping a function that takes a vector of enum as argument. I have built a minimal examp...
gwmato
Votes: 0
Answers: 1