Skip to content

DominikLindorfer/C-To-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C-to-Python Template

This simplistic template uses Python's ctypes to import functions and classes from C++ code directly into the Python code. The C++ file is compiled as a library which is then imported into Python.

Usage & Compilation on Linux:

To compile and execute the current code execute

./MakeFile.sh

or compile the libraries from source by

g++ -c -fPIC code.cpp -o code.o
g++ -shared -Wl,-soname,codelib.so -o codelib.so code.o

and then executing the Python file on your local machine.

Any Questions or Bug Reports? Send me an e-Mail: dominik.lindorfer@jku.at

About

Simplistic C to Python Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published