This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
HP-UX 11.00 gcc-3.0.1/binutils-2.11.2 - libstdc++.sl depends on libgcc.
- To: libstdc++ at gcc dot gnu dot org
- Subject: HP-UX 11.00 gcc-3.0.1/binutils-2.11.2 - libstdc++.sl depends on libgcc.
- From: "Keegan, David" <David dot Keegan at marconi dot com>
- Date: Mon, 1 Oct 2001 07:53:20 -0400
Hi,
The shared version of libstdc++ that is built on HP-UX 11.00 with
gcc-3.0.1/binutils-2.11.2 has several unresolved symbols
(_Unwind_SjLj_Register etc) that would have been resolved by linking it
with libgcc.a.
When attempting to link my own shared library containing C++ code these
symbols
remain unresolved even though -lgcc is in the link command both before and
after -lstdc++ and even if the +n option is passed to the HP-UX linker.
There
are no warnings when my shared library is being linked, but when one of its
functions is called it aborts due to the unresolved symbols in libstdc++.
I can work around this by using the -Fl link option to force all of libgcc.a
into my shared library, but it is hardly an acceptable solution.
Should libstdc++.sl not have been linked against libgcc.a in the first place
to resolve these symbols? How can I make this happen?
Regards,
David Keegan.