ffi/ffi — Issue #187: Won't link on Windows XP 32bits and RubyInstaller 1.9.3p0 with latest DevKit
Author: rosenfeld
Created: 2012-01-17 20:13:08+00:00
State: open

I've downloaded every piece for Windows today from RubyInstaller.

When I try to run gem install --remote ffi --platform=ruby (or just gem install ffi), I get linking issue after lots of compilation:

libtool: link: gcc -o .libs/libffi.dll.a src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o src/x86/.libs/win32.o `echo "X" | /usr/bin/sed -e 1s/^X// -e 's/ -lc$//'` -link -dll
c:/documents and settings/instalador/my documents/mingw-devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -link
collect2: ld returned 1 exit status
make[3]: *** [libffi.la] Error 1