From: Eric Christopherson Date: 2010-01-25T09:44:40+09:00 Subject: Re: Invoking Ruby 1.9.1 interpreter within C, on OS X gcc On Sun, Jan 24, 2010 at 1:19 PM, Paul Wuersig wrote: > Here's how I'm trying to compile it: > gcc -I/usr/local/include/ruby-1.9.1/ruby test.c > > It complains about undefined symbols for all the ruby calls. I think I'm > missing a pointer to the necessary libraries, but I'm not sure which > directory to point to. You might have success passing -L/usr/local/lib -lruby (or -lruby-static) on the gcc command line.