From: timsuth@... (Tim Sutherland) Date: 2003-11-22T11:07:16+09:00 Subject: Re: Ruby Extension/DLL Help In article <20031116195131.125D645A800@helium.ruby-lang.org>, Andy Pelzer wrote: >Hi, > >Recently i started writing a Ruby extension. This Extension is providing >access to a dll-library. It has been written in c. Compiling works fine, >but using it in Ruby always raises this error: "dlsym: win32 error 127 >[..] (LoadError)". What does this error mean? I think it means, that >Ruby cannot find the dll, used by the extension, but i'm absolutely >unsure. If this is correct, where does the dll have to be? If not, what >does this error mean? Any suggestions how to fix this? > >Environment: Ruby 1.8 on WinXp/Cygwin, compiler: gcc/make [...] I'm just guessing here, but I seem to recall having a similar problem when I incorrectly capitalised the library name in `require'. Since the Windows filesystems are not case-sensitive, the file was found and loaded, but then the Init_Foo function could not be called. Error 127 is "symbol not found" or similar.