From: William S F. <ws...@fu...> - 2007-04-03 22:27:34
|
Tennis Smith wrote: > Hi, > > > > (Sent this one before, but had problems with my account -- apologies if > you get it twice.) > > > > I have a library file (“libfoo.a”) and a header file (“foo.h”) which are > for using an api in a c-language application. > > > > Since the only source I really have is the header file, I created a > “foo.i” file with this content: > > > > /* File : foo.i */ > > %module foo > > %{ > > #include <foo.h> > > %} > > > > Is this the correct way to approach it? > No. Take a look at any of the examples and there is a manual with the information you need. If anything is unclear in the manual, let us know. William |