Archive for September, 2007
The SWIG Wrapper Generator Part 1
SWIG is a C/C++-like language that allows you to export your C/C++ libraries to a number of languages including java, ruby, C#, perl, and others. If you want to export a large library to a particular language or any library to multiple languages SWIG may be what you are looking for. This article does a simple example using swig with java to get you familiar with the concepts. Article 2 will show complex examples dealing with memory management, modifying your API to work in a way that is natural to the target languages and more.
Read more