Date: Tue, 05 Sep 2000 18:20:23 +0200 From: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE> To: Michael Owens <owensmk@earthlink.net> Cc: hackers@FreeBSD.ORG Subject: Re: dlopen() Message-ID: <20000905182023.A255@frolic.no-support.loc> In-Reply-To: <00090423164501.01182@mike>; from owensmk@earthlink.net on Mon, Sep 04, 2000 at 11:16:17PM -0500 References: <00090423164501.01182@mike>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 04, 2000 at 11:16:17PM -0500, Michael Owens wrote: [...] > -Wl,export-dynamic, but still have not seemed to resolve the problem: whe= n the > program calls dlopen to load the library, it returns >=20 > ./libcircle.so: Undefined symbol "__pure_virtual" It seems that this is a libgcc issue. When linking `testdcl', the linker does not add unneeded symbols from libgcc. Symbols from libgcc needed in libcircle.so or libsquare.so, but unneeded in testdcl won't get resolved. Try linking libgcc to libcircle.so and libsquare.so. Look after how g++ invokes the linker (g++ -v), you may have to call the linker by yourself. This is a dirty hack. The proper solution is to convert libgcc into a shared library. This work is already under way. Bj=F6rn --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000905182023.A255>