From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-07-23T22:45:01+09:00 Subject: Re: Embedding problem - SEGV 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) Does static linking work for you ? -- Simon Strandgaard