From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,c4aed23df44a58a X-Google-Attributes: gidfee84,public From: tquan@ibm.net (Tony Quan) Subject: Re: dlopen()/dlsym() and Digital Unix 4.0 Date: 1997/03/13 Message-ID: #1/1 X-Deja-AN: 225144185 References: <5g6mgv$j0c$1@newsy.ifm.liu.se> Newsgroups: comp.unix.osf.osf1 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 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 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