home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!tse
- From: tse@leland.stanford.edu (Eric Tse)
- Subject: How do I make dynamic link libraries?
- Message-ID: <1992Nov11.201353.24270@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSO, Stanford University
- X-Newsreader: Tin 1.1 PL5
- Date: Wed, 11 Nov 92 20:13:53 GMT
- Lines: 32
-
- [ Article crossposted from comp.unix.programmer ]
- [ Author was Eric Tse ]
- [ Posted on Wed, 11 Nov 92 00:45:46 GMT ]
-
- Hi,
- I am new to dynamic-link libraries and wonder how I can
- create one. For example, if I want to make f1.o f2.o into a
- libtest.so.0.1, do I do:
- ld -Bdynamic f1.o f2.o -o libtest.so.0.1
- ?
- Then if I want to compile a programm a.out originally
- using f1.o and f2.o, do I do:
- cc -Bdynamic -o a.out other1.o other2.o libtest.so.0.1
- ?
- If I want to execute a.out, do I have to
- setenv LD_LIBRARY_PATH /path_of_the_so
- before I run a.out?
-
- But it does not work! Any help? Please?
-
-
- --
- ========================================================================
- Eric Tse
- tse@leland.stanford.edu
- ========================================================================
-
- --
- ========================================================================
- Eric Tse
- tse@leland.stanford.edu
- ========================================================================
-