From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97145460202143.tru64-unix-managers.marc@archive.invalid> From: Valerie Caro Date: Fri, 13 Oct 2000 16:32:15 +0000 To: tru64-unix-managers Subject: Are there OS patches that solve the G++ symbol clash problem? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97145460202143 Many thanks to all who have helped figure out how to resolve the symbol clash problem that occurs when linking the dynamic stdc++ library on Alpha (more info at http://gcc.gnu.org/install/specific.html#alpha*-dec-osf*) Seeing as our environment is already using the shared libstdc++, we can't remove it (it would break programs for many users), nor can we create future incompatibilities by inserting libgcc symbols into libstdc++; instead, we have devised another workaround: We run g++ with the "-v" flag, and modify the produced "collect2" command (it's the link command) to frame the "-lstdc++" directive with "-no_so" and "-so_shared" directives. Executing this modified linker directive allows the linker to link only libstdc++ statically, but not other libraries. The problem is that this process is rather cumbersome. One would imagine that there would be OS patches which would repair this linker problem. Does anyone know if such patches are available for Digital Unix 4.0d? --- Valerie Caro Computer Science Computing Facility, valerie@cs.umass.edu CmpSci Room 126 University of Massachusetts Amherst, MA 01003