Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Shared + stdcxx + no_archive = unresolved
@ 1998-11-19  5:00 tom444792
  0 siblings, 0 replies; only message in thread
From: tom444792 @ 1998-11-19  5:00 UTC (permalink / raw)


Trying to create a shared library with some C++ code compiled
with the new compiler in the default (-std_ansi) mode.

A)
With "ld -shared -no_archive [objects] -lots -lcxx -lc -lm -lc " I get
ld:
Warning: Unresolved:
__stdnw__XUl
__nwa__XUl
__dla__XPv
---------------------------------------
B)
With "cxx -shared -no_archive ... " I get
ld:
Can't locate file for: -lcxxstd
---------------------------------------
Case (A) occurs because the new C++ generates calls to the ANSI new operator
and the cxxstd library isn't included in the ld line.
---------------------------------------
Case (B) occurs because libcxxstd.so doesn't exist, only the static
/usr/ccs/lib/cmplrs/cxx/libcxxstd.a exists.
---------------------------------------

Now my questions:

- should I remove the -no_archive flags?
  The Digital Unix programmer's guide (section 4.5) seems
  to indicate I should keep it.  This is probably to avoid
  having 2 instances of the same function.

- should I just create my own libcxxstd.so and put it in /usr/shlib ?
  Why wasn't this library included with the compiler in the first place?

- should I just avoid ANSI new() and new[]() (by using the cxx
  options -nostdnew and -noglobal_array_new) ?

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



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

only message in thread, other threads:[~1998-11-19  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-19  5:00 Shared + stdcxx + no_archive = unresolved tom444792

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