From: Jeff Mitchell Date: 2004-06-17T11:35:02+09:00 Subject: Re: Extension which depends on another extension --- nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 17 Jun 2004 10:46:25 +0900, > Jeff Mitchell wrote in [ruby-talk:103890]: > > I have two extensions, ext_x.so and ext_y.so. ext_y.so references a > > few functions defined in ext_x.so. > > Such usage is not guaranteed on all platforms. Yes I didn't realize that until now. It makes sense, since there is no ext/socket/socket.h for example. > > Is there something I'm missing, or is it really going to be this hard? > > ext_x.so should remain independent. As a last resort, I suppose I > > could combine the two extensions into one, but that would be pretty > > messy. In fact, I have three other extensions which require ext_x.so. > > If I were you, I'd extract common portion to another shared > library, or define methods instead of direct references. Aha, they are defined as ruby methods already but for some reason I didn't think to call them with rb_funcall. Thanks. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail