🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Campbell Thu, 28 Jan 1993 00:25
Shared libraries with gcc/g++
#903
Author: David Campbell
Date: Thu, 28 Jan 1993 00:25
27 lines
1949 bytes
Hi.  Does anybody know if there are any special tricks to using shared
libraries with gcc/g++ (version 2.3.3)?

I'm using a sparc platform and successfully build shared libraries using
Sun C++ 2.1 by compiling with -PIC and putting all global variables into one
object which becomes libxx.sa.0.1 and the other objects into libxx.so.0.1.

...but when it comes to g++, the libraries build OK with -fPIC but when I am
linkingan application, I get a failure with unresolved symbols which are all
defined in libxx.sa.0.1.

gcc/g++ is using sun's linker.

Any help would be appreciated.

Regards,
  +--------------------------------------------------+-----------------------+
  | Dave Campbell                                    |            UNIX & C++ |
  | Phone: + 61 6 275 0944      Fax: + 61 6 257 1052 |   _--_|\       PLEASE |
  | CSIRO Division of Information Technology         |  /      \             |
  | Centre for Spatial Information Systems           |  \_.--._/ <- Canberra |
  | PO BOX 664                                       |        v              |
  | CANBERRA ACT 2601       +------------------------+                       |
  | AUSTRALIA               | dave@csis.dit.csiro.au |                       |
  +-------------------------+------------------------+-----------------------+
  |                       Get right.....or get left.                         |
  +--------------------------------------------------------------------------+
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads