From: Brian Candler Date: 2003-07-23T23:00:13+09:00 Subject: Re: Embedding problem - SEGV On Wed, Jul 23, 2003 at 10:45:01PM +0900, Simon Strandgaard wrote: > On Wed, 23 Jul 2003 23:10:12 +0900, ts wrote: > > >>>>>> "B" == Brian Candler writes: > > > > B> I gave the compile/link command in the previous post, and adding -ldl makes > > B> it fail: > > > [snip] > > > > What if you static link with ruby like this: > > # ruby 1.8.0 > RUBY=$(HOME)/install/ruby-1.8.0 > LIBS=$(RUBY)/libruby-static.a -lcrypt > > all: > g++ main.cpp -I$(RUBY) $(LIBS) If you look at my previous post, you'll see that's what I did. Regards, Brian.