PDA

View Full Version : Executing C Function from Python



madmaze
July 27th, 2009, 04:25 PM
Hello Everyone,
I am working with a python web interface running through django, but I need to be able to call C/C++ functions.
I know how to compile a c/c++ into an executable and running it that way, but I need to be able to pass the c an array of data and i also need to be able to return data to the python.

Does anyone have any ideas on how to do that?

any suggestions welcome, thanks

Sporkman
July 28th, 2009, 06:55 PM
Look into Swig:

http://www.swig.org/