[Top][All Lists]

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

Re: Linking automatically with dlopen

From: Reuben Thomas
Subject: Re: Linking automatically with dlopen
Date: Mon, 16 Apr 2007 20:00:19 +0100 (BST)

On Sun, 15 Apr 2007, Bob Friesenhahn wrote:

On Mon, 16 Apr 2007, Reuben Thomas wrote:

Is there a way to use libtool to link against a library using dlopen? I want to be able to link against a library which may not be present at runtime, be certain that the application starts up (i.e. the dynamic linker doesn't discover that a library is missing and abort), and then be able to find out whether a given library was successfully linked or not (and hence decide whether I can execute code that uses symbols from that library).

This is a function of libltdl, which comes with libtool. I use it in GraphicsMagick.

I read the documentation for libltdl before posting originally, but I couldn't see how to do what I wanted. Can you explain, please? In particular, I couldn't see how to link using libltdl instead of the normal linker without changing my source.

-- | think tank, n.  a safe container for noxious gases

reply via email to

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