From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,815f42cce3f869d1 X-Google-Attributes: gidfee84,public From: Gerald Feldman Subject: Re: Dynamic linking shared objects Date: 1996/01/31 Message-ID: <310FE500.794B@zk3.dec.com>#1/1 X-Deja-AN: 137486462 references: <3107BAFE.AE7@ukh.pontis.com> content-type: text/plain; charset=us-ascii organization: Digital Unix Development Environment mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0b6a (X11; I; OSF1 V3.2 alpha) wilkinan wrote: > On Solaris (for example), I can create a shared object, and then > from an application (which hasn't been compile-time linked with > that shared object), do something like: > handle = dlopen("mylib.so"); > pfunc = dlsym(handle); > > i = (*pfunc)(); > > dlclose(handle); > > Is there a similar mechanism on DEC UNIX (OSF/1)? Or is there > any software around capable of achieving the same end as this. Digital Unix supports the dlopen(), dlclose(), and dlsym() funcitons. These are supported in Digital Unix V3.2. I am not sure which prior releases did support those functions. There are some differences between the Sun and Digital implementations. In the future, there will be a standard version of these accross platforms. -- Jerry Feldman Unix Systems Group Digital Equipment Corp. Mailstop: ZKO3-3/Y25 110 Spitbrook Rd. gaf@zk3.dec.com Nashua, NH 03062-9987 (603)881-2970