From: Chuck Remes Date: 2010-06-28T03:37:22+09:00 Subject: [ruby-core:30927] undefined reference to 'rb_encdb_declare'; ruby-1.9.2-preview3 64-bit on Windows [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. Build environment... Windows 7 x64 Pro mingw-w64 snapshot from June 26, 2010 gcc 4.6 (stage 1) ./configure --host=x86_64-w64-mingw32 --enable-shared --disable-install-rdoc Thanks for any suggestions. cr