Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 1996 16:21:17 -0700 (PDT)
From:      "Eric J. Schwertfeger" <ejs@bfd.com>
To:        questions <questions@freebsd.org>
Subject:   How to make g++ shared libraries?
Message-ID:  <Pine.BSF.3.91.960415161453.3795B-100000@harlie.bfd.com>

next in thread | raw e-mail | index | archive | help
I'm trying to create a shared version of the Cvo (Cray Visual Objects) 
c++ library, but it isn't working.  I followed the same steps that I do 
to make regular c shared libraries (gcc with -c and -fpic, then 
ld -Bshareable to create the libCvo.so.1.0.  This creates a library that 
I can link against, but when I try to execute the resulting program, I 
get:

Cvo-24: Global constructors were probably not called.
Cvo-25: The application was probably linked improperly
Cvo-22: Atom 0 is out of range
Abort trap (core dumped)

I also noticed that the shared library is smaller than the equivelent 
unshared library.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960415161453.3795B-100000>