Skip to content

Wrapper example linking C++ and python using ctypes. An example is provided to link numpy arrays with C++.

License

Notifications You must be signed in to change notification settings

ajjimeno/cpp-python-ctypes

Repository files navigation

C++ to python using ctypes

Example of wrapping a C++ class using ctypes.

It has been tested in MacOS and python 3.10. It should work on Linux, even though it has not been tested.

Installation

Clone the repository

Run sh build.sh

There are three C++ examples. runner.cpp has an example with numpy arrays.

About

Wrapper example linking C++ and python using ctypes. An example is provided to link numpy arrays with C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published