Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: emclean@sfsuvax1.sfsu.edu (Emmett McLean)
Subject: Shared libraries
Date: 29 Jun 1994 06:08:15 GMT	[thread overview]
Message-ID: <2ur34f$fc5@news.csus.edu> (raw)



  Attached below are instructions for making shared libraries
  on Sun OS4. Does anyone know what the equivalent instructions
  are on ULTRIX and OSF/1 using gcc?

  E-mail but feel free to post.

  Thanks,

  Emmett
 

   1.  Make for a subroutine/function:

      cc -PIC -c filename.c -o filename.o


   2.  Make the shared library (libtest.so.1.1)

      ld -o libtest.so file1.o file2.o file3.o -assert pure-text

      (Now rename libtest.so to libtest.so.1.1)

   3.  Linking the main program (make sure that libtest is in the LD_LIBRARY_PATH
   during runtime): 

      cc main.o -o a.out -L/yourlibdir -Bdynamic -ltest


\x1f


             reply	other threads:[~1994-06-29  6:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-29  6:08 Emmett McLean [this message]
     [not found] ` <jerry.772874169@kenya>
1994-06-29 14:37   ` Shared libraries Burkhard Neidecker-Lutz
  -- strict thread matches above, loose matches on Subject: below --
1995-05-22  4:00 shared libraries Stefan Monnier
1995-05-22  4:00 ` David Metsky
1998-09-17  4:00 Shared libraries Peter Thornewell
1998-09-18  4:00 ` Scott J. Tringali
1998-09-18  4:00 ` Nikola Milutinovic
read-only archive

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