From: Brian Candler Date: 2003-05-22T21:50:39+09:00 Subject: Re: OT: pickaxe chap 17 and gcc (ruby/c) On Thu, May 22, 2003 at 08:56:18PM +0900, Rasputin wrote: > rasputin@shrike cruby$ gcc -c -o Test.o -I \ > /usr/local/lib/ruby/1.6/i386-freebsd4/ simple.c > rasputin@shrike cruby$ ls > Test.o simple.c test.rb > rasputin@shrike cruby$ file Test.o > Test.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD), > not stripped You have to build it as a shared library (.so) $ file /usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4.7/fcgi.so /usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4.7/fcgi.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped Cheers, Brian.