Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Compaq C++ work-around for libcxxstd.a
@ 2000-05-19  4:00 Warren Miller
  0 siblings, 0 replies; only message in thread
From: Warren Miller @ 2000-05-19  4:00 UTC (permalink / raw)


Hi,
    The release notes for Compaq C++ 6.2 recommend a work-around for the
situation where linking against a shared library created with cxx produces
multiply-defined symbol errors because libcxxstd.a effectively is linked
against twice--once during creation of the shared library, and once when
linking against the shared library to produce the executable. The
work-around is to use the -hidden/-non_hidden flags when building the shared
library as in:

cxx -hidden /usr/lib/cmplrs/cxx/libcxxstd.a -non_hidden -shared ...

We ran into the multiply-defined symbol problem for a handful of executables
that link against one of our C++ libraries, so we instituted the work-around
and re-built the library. This got rid of the link errors, but now certain
executables (not necessarily those that triggered the multiply-defined
symbol errors) built this way have become unstable--they dump core in
different places in the C++ standard library during string manipulation.

If we remove the work-around and restrict testing to those executables that
did not suffer from the multiply-defined symbol errors in the first place,
they work fine. As soon as we use the work-around and re-link, they crash.
Does anyone have some insight into this work-around or have a solution?

additional details:

Tru64 version: 5.0A
cxx version: Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.0A (Rev. 1094)
all source code is compiled using -D__USE_STD_IOSTREAM

Thanks.
W. Miller





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-19  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-19  4:00 Compaq C++ work-around for libcxxstd.a Warren Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox