>>>>> "P" == Paul Brannan <paul / atdesk.com> writes: P> gcc test.c -o test -I [include_dir] -L [lib_dir] -lruby -lm -lcrypt -ldl P> If I have ruby compiled without --enable-shared (the default on 1.6.5), P> then I get: P> [pbrannan@zaphod ruby-1.6.5]$ ./test -rsocket -e "" P> [BUG] Segmentation fault P> ruby 1.6.5 (2001-09-19) [i686-linux] P> Aborted (core dumped) I can't reproduce the coredump with 1.6.5 but in your command line you have forgotten -rdynamic Guy Decoux