I try to pass a pointer of a structure which is given me as a return value from the function \'bar\' to the function \'foo_write\'. But I get the error message \'TypeError: must be a ctypes type\' for
I wanted to wrap a small C++ code allocating an array with ctypes and there is something wrong with storing the address in a c_void_p object.
I read the official ctypes tutorial and also searched SO, but I could not find a wa开发者_运维问答y to declare this kind of structure with ctypes. This structure is returned by one of the functions I
after having no success with my question on How to use float ** in Python with Swig?, I started thinking that swig might not be the weapon of choice. I need bindings for some c functions. One of these
I have a c99 function that uses openmp, which works as expected. I also wrote a python interface using ctypes which causes the problem. Ctypes/python can not find the library for openmp. Here is the e
I\'m trying to call an external library function that returns a NULL-terminated array of NULL-terminated strings.
I have compiled a library using cmake add_library(object3d SHARED some_file.h some_file.cpp). After compilation, I get a file: libobject3d.so
In brief, I am trying to call into a shared library from python, more specifically, from numpy. The shared library is implemented in C using sse2 instructions. Enabling optimisation, i.e. building the
I have a 64 bit RHEL开发者_StackOverflow host with 32 bit libraries installed. One vendor has a 32 bit .so I\'d like to load into Python using ctypes.
I\'m attempting to write a Python wrapper for poker-eval, a c static library. All the documentation I can find on ctypes indicates that it works on shared/dynamic libraries. Is there a ctypes for stat