views:

21

answers:

1

I found swig can generate script wrapper for various scripting languages. I've a 3rd party static library, a header file and a lib.

How can I use swig so that I can call functions from that library from a scripting language, say python?

Thanks

A: 

Try reading the swig documentation. It walks through examples of how to do exactly this.

Andrew Dalke