Here's the thing: there is this library wrote in C, which I cannot modify. I want to be able to use its functions in a program I will write in Python.
Is there a way to do that, or am I dreaming too high?
not at all, there are several ways you can achieve that.
I would just write a wrapper that enables interaction between your library and Python, or you can use tools that will do it for you(but using them is not that simple).
for example:
1. Extending Python with C or C++ — Python v2.6.3 documentation
or google swig,boost, or just Python C wrapper
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks