From owner-freebsd-questions Mon Apr 15 16:19:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA15752 for questions-outgoing; Mon, 15 Apr 1996 16:19:00 -0700 (PDT) Received: from horst.bfd.com ([204.160.242.10]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA15747 for ; Mon, 15 Apr 1996 16:18:58 -0700 (PDT) Received: from harlie.bfd.com (bastion.bfd.com [204.160.242.2]) by horst.bfd.com (8.7.3/8.7.3) with SMTP id QAA02410 for ; Mon, 15 Apr 1996 16:24:27 -0700 (PDT) Date: Mon, 15 Apr 1996 16:21:17 -0700 (PDT) From: "Eric J. Schwertfeger" To: questions Subject: How to make g++ shared libraries? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.