[SciPy-User] Wrapping C/C++ Code
Rohit Garg
rpg.314 at gmail.com
Tue Nov 3 10:23:03 EST 2009
The first thing to do is to expose an API from your program that your
script can access. It'll likely not be done as it was written with
one language in mind.
After that it's your call whether you want to embed or extend the
interpreter. For extending, IMHO, SWIG is your friend.
On Tue, Nov 3, 2009 at 4:46 PM, Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> Dear All,
> I hope this is not too off-topic.
> If you were asked to wrap C/C++ codes into a Python application
> (potentially relying on NumPy/SciPy) which route would you follow?
> Bear in mind that the initial C/C++ code is a standalone program which
> was not written having Python in mind at all.
> Many thanks
>
> Lorenzo
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay
More information about the SciPy-User
mailing list