[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen from dlopend library question

From: Ralf Wildenhues
Subject: Re: dlopen from dlopend library question
Date: Mon, 1 Aug 2005 15:42:17 +0200
User-agent: Mutt/1.4.1i

Hi Gleb,

Sorry for the late response,

* Gleb Natapov wrote on Sun, Jul 17, 2005 at 11:39:34AM CEST:
> I have library (lets say that on startup checks available 
> hardware and loads appropriate plugin (say to drive the hardware.
> uses symbols from 
> Everything works OK if linked with application, but if
> application is modular by itself and use module (say that
> is linked with then dlopen of from fails with
> unresolved symbols.
> How can I solve this issue?

If you use Libtool/libltdl for portable modules (which you do not seem
to do), look at Libtool branch-2-0 or CVS HEAD, which allows ltdlopen'ing
from libraries.  Make sure to read the corresponding documentation
pertaining to libltdl, make use of `-module' and `-export-dynamic'.

> PS: All this happens using linux system.

If you want to be GCC/GNU ld specific only, you can use --export-dynamic
for exporting symbols to dlopen'ed modules.

If this is not enough help, don't hesitate to ask for details.  If you
could provide a small example that reproduces the failure, the better.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]