This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
shared libraries & exceptions
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 31 Jan 2003 15:11:51 -0800
- Subject: shared libraries & exceptions
- References: <3E3AFA34.5000601@unitus.it>
I understand that there's no reason to expect a C++ shared library
to work right in a program whose a.out wasn't built with the same
C++ compiler that built the library.
Still, people often want to call exported C functions in C++ libraries
from (what are nominally) C programs. Is there any supported way to
explicitly initialize the g++ runtime machinery, in gcc-2 and/or in
gcc-3, e.g. by calling some reserved identifier at library-load time?
(I wouldn't expect the solution to be the same for gcc-2 and gcc-3.)
Nathan Myers
ncm-nospam@cantrip.org