From: Luis Lavena Date: 2010-06-28T04:04:23+09:00 Subject: [ruby-core:30929] Re: [RubyInstaller] undefined reference to 'rb_encdb_declare'; ruby-1.9.2-preview3 64-bit on Windows On Sun, Jun 27, 2010 at 2:36 PM, Chuck Remes wrote: > [cross-posted to rubyinstaller ML] > > I'm working on getting ruby-1.9.2-preview3 to compile under mingw-w64 (64-bit) on Windows 7 x64. So far I have only had to make one minor change to the sources (an additional check in win32.h). When I get a complete and working build, I'll be sure to send patches upstream. > > Right now I am stuck trying to get the encodings to compile via the generated enc.mk makefile. I have a complete list of the make output here along with the generated enc.mk file: > > http://gist.github.com/455064 > > It can't resolve the references to rb_encdb_declare, rb_encdb_alias and rb_encdb_replicate which are in the encoding.o object file. I thought this was probably a problem with the enc.mk file but it looks okay to me. I diff'ed it against the same file for an OSX install and the differences looked reasonable based on the different platforms. > > Does anyone have any idea how I can get ld to use encoding.o to resolve those symbols when building the encodings? I've been banging my head on this for a few hours now and cannot fix it myself. I can provide additional info (config.log snippets, etc.) if you need more information. > can you check if the shared library (libmsvcrt-ruby191.dll.a) really contain the exported symbols? (There is no export-all displayed in line 95..97 of make output) -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry