From: Lyle Johnson Date: 2004-08-19T22:18:07+09:00 Subject: Re: swig problem with init On Thu, 19 Aug 2004 08:35:54 +0900, Phil Tomson wrote: > I would try changing the .i file to: > > %module itkdb > > %{ > %} > > Although it does seem a bit backward... If I recall correctly, what > happens is that when you define '%module itkdb' you'll get a Ruby module > called Itkdb (uppercased). Yes, that is exactly what happens. > In your case you called it ITKDb and it seems > to have lowercased it. No, look at the SWIG-generated wrapper code, e.g. mITKDb = rb_define_module("ITKDb"); SWIG definitely honored his module name choice of ITKDb. What does seem to have happened is that Jim then compiled the wrapper code into a shared library named (lowercase) itkdb.so, which (as Joel as pointed out) is inconsistently named. SWIG just generates the source code and doesn't have any control over how you actually compile that code into a shared library for use by Ruby.