From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 19:00:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 697FF16A4CE for ; Wed, 4 Feb 2004 19:00:59 -0800 (PST) Received: from priv-edtnes46.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D25943D67 for ; Wed, 4 Feb 2004 19:00:41 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([207.81.17.215]) by priv-edtnes46.telusplanet.netSMTP <20040205030040.LEKP12743.priv-edtnes46.telusplanet.net@catseye.biscuit.boo>; Wed, 4 Feb 2004 20:00:40 -0700 Date: Wed, 4 Feb 2004 19:05:08 -0800 From: Chris Pressey To: "Joe Lewis" Message-Id: <20040204190508.0db9e9d0.cpressey@catseye.mine.nu> In-Reply-To: <52640.207.173.181.72.1075949311.squirrel@email.relia.net> References: <52640.207.173.181.72.1075949311.squirrel@email.relia.net> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: dlopen() and parent symbols X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 03:00:59 -0000 On Wed, 4 Feb 2004 19:48:31 -0700 (MST) "Joe Lewis" wrote: > I've read that I can't export symbols from the parent executable to > modules opened with dlopen(). So, I have a (hopefully) quick > question. How can I export function(s) to those modules? Can you pass them a function pointer (callback)? Don't know, never tried it with a dlopen()'ed object, but I can't immediately see why it wouldn't work... -Chris