Subject: Re: Unwind
To: Ben Collver <collver1@comcast.net>
From: Todd Vierling <tv@duh.org>
List: tech-toolchain
Date: 01/22/2004 21:11:42
On Thu, 22 Jan 2004, Ben Collver wrote:

: > If you compiled source with g++, link with g++. Compile is applicable for
: > "any objects you're linking with" as well.
:
: Does that hold true for dlopen() as well?

Yes, sort of.

ELF makes it a bit easier.  If a C program is using C linkage to a C++
shared object, all will be just fine so long as the C++ shared object was
linked to any necessary shared object dependencies (libsupc++, libgcc_s,
and/or libstdc++).  This is normally accomplished by using "c++ -shared" to
link the C++ shared object.

Ideally, and in most cases, ELF dependencies would take care of that, so the
C program need only link or dlopen() the C++ shared object.

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com>