Date: Tue, 14 Sep 2004 02:02:47 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Maxime Henrion <mux@freebsd.org> Cc: hackers@freebsd.org Subject: Re: Runtime loading Message-ID: <xzpisahhg48.fsf@dwp.des.no> In-Reply-To: <20040909143621.GD13294@elvis.mu.org> (Maxime Henrion's message of "Thu, 9 Sep 2004 16:36:21 %2B0200") References: <200409091630.36721.db@traceroute.dk> <20040909143621.GD13294@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Maxime Henrion <mux@freebsd.org> writes: > db 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. dlopen() etc. work just fine in C++. Beware of name mangling issues, though; you might not be able to load plugins compiled with a different compiler. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpisahhg48.fsf>