I’ve been working all day on this(I might just be useless today) but I
can’t figure it out.
I’m trying to make a simple extension, but when I include it, I get an
./alignment.so: 127: The specified procedure could not be found. -
I’m running Ruby 1.8.6 (from the Ruby-one-click-installer) on windows.
I’m using the Mingw32 tools for compiling my code.
In my .cpp file:
In my .rb file:
My compile script:
g++ alignment.cpp -shared -o alignment.so
-Ic:/ruby/lib/ruby/1.8/i386-mswin32 -lmsvcrt-ruby18 -lmsvcrt
-Lc:/ruby/bin -O3 -export-all-symbols
It compiles fine, but it just doesn’t seem to want to load my routines.
Anybody have any idea what the problem might be, and how to fix it?