Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tquan@ibm.net (Tony Quan)
Subject: Re: dlopen()/dlsym() and Digital Unix 4.0
Date: 1997/03/13	[thread overview]
Message-ID: <tquan-1303970045460001@slip166-72-210-171.ca.us.ibm.net> (raw)
In-Reply-To: 5g6mgv$j0c$1@newsy.ifm.liu.se

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]


In article <5g6mgv$j0c$1@newsy.ifm.liu.se>, peter@ifm.liu.se wrote:

>I'm trying to port my multithreaded web server Phttpd to Digital Unix 4.0.
>
>However, Phttpd uses dynamic linking of shared library objects via the
>dlopen()/dlsym() interface.
>
>What is the correct method of compiling and linking such a shared
>library object? I've tried to read the manual pages for dlopen,
>dlsym, cc and ld but they aren't exactly clear on this subject...
>
>- Peter
>
>--
>Peter Eriksson <peter@ifm.liu.se>         Computer Systems Manager/BOFH
>WWW: http://www.ifm.liu.se/~peter/                 Phone: +46 13 282786 
>Link�ping University, Department of Physics, S-581 83 Link�ping, Sweden

Very simply, it's just:

ld -shared -o <name of shared library> <names of objects & libraries to link in>

By convention, shared libraries on Digital UNIX have names starting with
lib and ending with a .so extension, as in "libtest.so".

--Tony
tquan@ibm.net



      reply	other threads:[~1997-03-13  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-12  5:00 dlopen()/dlsym() and Digital Unix 4.0 Peter Eriksson
1997-03-13  5:00 ` Tony Quan [this message]
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