This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Dumb error of the day
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
I wasted about 30 minutes trying to track down what I thought was a linker error. It turned out that I had typed "init_rv" instead of "Init_rv" in my extension.
You won't get an error during the build phase if you do this. Instead, you'll get a linker error when you try to 'require' the package in your Ruby code. This being Solaris, I naturally assumed it was some sort of LD_LIBRARY_PATH or linker issue first instead of checking my own code.