Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ruby C extension problems mingw, missing symbols?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Conan Rubymanjaro, post: 4574247"] 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 error: /alignment.so: 127: The specified procedure could not be found. - Init_alignment.so 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: void Init_alignment() { } In my .rb file: require 'alignment' puts "WOO!" 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ruby C extension problems mingw, missing symbols?
Top