From: Tim Becker Date: 2006-09-14T04:17:54+09:00 Subject: Re: building extension modules, and linking > But when we're building an extension module, how to you do tell GCC > (at link-edit time) that you want your code to link to (at runtime) > what's already loaded and running -- that is, to link to the ruby > interpreter -- rather than to some shared lib somewhere? I think the point you're missing is that the runtime the interpreter loads your extension, not the other way around. Else the extension would just pop into existence and then stumble around looking for a running interpreter. If you're interested in how the interpreter goes about loading your extension technically, search around for 'dlopen' (at least on a Linux system). -tim