Re: Dynamic Loading for multiple files?

From: Patrick LECOANET <lecoanet_at_cenaath.cena.dgac.fr>
Date: Wed, 28 Sep 94 16:22:25 +0100

>>>>> "EG" == Erick Gallesio <eg_at_kaolin.unice.fr> writes:

>> Is there a way to get multiple files to be dynamically
>> loadable?
>>
>> I want to use the functionality in Extensions/hash.c to write
>> another dynamically-loaded C file. Since hash.c is also
>> statically linked in, I can do this, but later, I will want to
>> have a *lot* of C files which all get dynamically linked into
>> stk.
>>
>> Right now, I get this:
>>
>> bolverk:stk Welcome to the STk interpreter version 2.1
>> Copyright (C) 1993, 1994 Erick Gallesio - I3S - CNRS / UNSA
>> <eg_at_unice.fr>
    STk> (load "hash.so")
>> #[undefined]
    STk> (load "timers.so")
>> ld.so: call to undefined procedure _make_hash_table from
>> 0xef6fb114
>>
>> What am I doing wrong?

Well I think that this is impossible on SunOs as the dlopen() call will not export
the new symbols to other modules.

It is possible to make it work on Solaris if you give RTLD_GLOBAL as mode to dlopen().
Hem... well, the manual say so, but i have not tried.
Received on Wed Sep 28 1994 - 16:22:21 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST