From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 9 14:43:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6581216A4CE for ; Thu, 9 Sep 2004 14:43:59 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 220B043D4C for ; Thu, 9 Sep 2004 14:43:59 +0000 (GMT) (envelope-from rdormer@gmail.com) Received: by mproxy.gmail.com with SMTP id 74so468097rnk for ; Thu, 09 Sep 2004 07:43:52 -0700 (PDT) Received: by 10.38.59.62 with SMTP id h62mr1207040rna; Thu, 09 Sep 2004 07:43:52 -0700 (PDT) Received: by 10.38.76.31 with HTTP; Thu, 9 Sep 2004 07:43:52 -0700 (PDT) Message-ID: <3174add604090907435928beb3@mail.gmail.com> Date: Thu, 9 Sep 2004 10:43:52 -0400 From: Robert Dormer To: db In-Reply-To: <200409091642.36082.db@traceroute.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200409091630.36721.db@traceroute.dk> <20040909143621.GD13294@elvis.mu.org> <200409091642.36082.db@traceroute.dk> cc: hackers@freebsd.org Subject: Re: Runtime loading X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robert Dormer List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 14:43:59 -0000 glib provides a facility for this, and should be even more platform portable.... On Thu, 9 Sep 2004 16:42:34 +0200, db wrote: > On Thursday 09 September 2004 16:36, you wrote: > > > > In my C++ program I need to load some files/classes at runtime, so that > > > users can add "plugins" without recompilling my program. What functions > > > should I use? I'm using FreeBSD 5.3-beta2 btw. > > > > I'm not sure about C++, though I guess you could use the same functions as > > in C. If that's true, then you should use the dlopen() family of > > functions. They are quite portable, since you'll find the same functions > > under all the *BSD, Linux and Solaris. Be aware that with Linux and > > Solaris, those functions are located in libdl, while they are found in libc > > on the *BSD systems. > > Ok, thanks :-) > > br > db > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >