I'm trying to get the following C function to be exposed as a python interface. Unfortunately the swig documentation didn't help narrow down on a s ...
I'm trying to get the following C function to be exposed as a python interface. Unfortunately the swig documentation didn't help narrow down on a s ...
Using SWIG to generate a Python binding for my C++ project has not been easy but I have finally been able to do so. The only issue is that the generat ...
I am working with the QuickFIX python library. It is made using SWIG. I am trying to get string outputs of the functions I am calling from the library ...
I have a cmake based C++ project (library) which is wrapped to python using swig. A method of the library returns a std::vector<int64_t> which i ...
I have a Swig wrapper to use in python. For one of my class, I have created a repr function as follows However when I compile the wrapper and use i ...
I have a toy model of a class with a method which takes two integers and pushes them to a vector (passed by reference). I also have some custom typema ...
I have some python functions which I run from C++ side and I need them to return std::expected objects. What I did is this: In Swig code I have som ...
I need some help with SWIG on this. I have a C++ pure virtual function that I need to implement in python and it gets an std:span<uint8_t> as a ...
Preface: I have two header files: "Sample.h" and "Sample2.h". Here are the contents of the two headers: "Sample.h" has: "Sample2.h" has: ...
Trying to use swig to pass a python list as input for c++ class with a (one of many) constructor taking a std::vector<double> * as input. Changi ...
I am compiling a C++ code on mac using swig and making a shared .so library. I have found a similar question here but I get an error for the last line ...
i have a C header file with many defines for registers, and in my Python SWIG interface i only want to expose a few. My C header looks like this (just ...
I have managed to successfully wrap a large C++ library with SWIG. I published the module and can install it okay, but when I go to build it I get a t ...
I just picked up swig in an attempt to port a large library written in C++, to golang. The build and install went okay, and now I'd like to test it by ...
If we return value created by SWIG_NewObjectPtr without flags, it will have reference count of 1 and would never be garbage collected. In order to avo ...
I have a C++ Publication/Subscription service that uses RTI's DDS middleware to exchange messages. This works correctly. I use SWIG to generate JNI so ...
in C/C++ I have Look at the member MarketTrcode, It seems stock an array of string/char *, but I need to pass values to this struct in C/C++ throug ...
I want to pass a Python datetime object to the function printme below, seamlessly. So far I was able to create this SWIG typemap to convert from da ...
I have a function in C++ that is passed a uint64_t as nanoseconds from epoch. I have wrapped this number in an object DateTime as in struct DateTime ...
I'm trying to make a basic csv parser in c++ for a particular csv schema, and I'm trying to wrap the function for Python, but I keep getting a "StdVec ...