Date: Thu, 9 Sep 2004 10:43:52 -0400 From: Robert Dormer <rdormer@gmail.com> To: db <db@traceroute.dk> Cc: hackers@freebsd.org Subject: Re: Runtime loading Message-ID: <3174add604090907435928beb3@mail.gmail.com> In-Reply-To: <200409091642.36082.db@traceroute.dk> References: <200409091630.36721.db@traceroute.dk> <20040909143621.GD13294@elvis.mu.org> <200409091642.36082.db@traceroute.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
glib provides a facility for this, and should be even more platform portable.... On Thu, 9 Sep 2004 16:42:34 +0200, db <db@traceroute.dk> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3174add604090907435928beb3>